joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002cad
Capabilities:
Delete file

Disassembly:
mov eax, 0x10006160
call fcn.10005f00
sub esp, 0x164
push ebx
push esi
push edi
push 1
pop edi
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call sub.gdiplus.dll_GdiplusStartup
push dword [ebp + 8]
lea eax, [ebp - 0x170]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x170]
pop ecx
push 0x10009164
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea ecx, [ebp - 0x170]
sub ecx, 3
add eax, ecx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
pop ecx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
push ebx
push ebx
lea eax, [ebp - 0x170]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x170]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0x10007224
mov dword [ebp - 0x24], ebx
push eax
push dword [ebp - 0x14]
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], ebx
push eax
push str.image_jpeg
call fcn.10002e20
mov dword [ebp - 0x5c], edi
mov esi, 0x1000722c
lea edi, [ebp - 0x58]
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
lea eax, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
push 1
mov dword [ebp - 0x40], eax
pop esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x44], 4
push dword [ebp - 0x18]
mov dword [ebp - 0x48], esi
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipSaveImageToFile
cmp eax, ebx
je 0x10002ddd
mov dword [ebp - 0x20], eax
push dword [ebp - 0x14]
call fcn.10005ed0
push dword [ebp - 0x18]
call fcn.10005ed0
pop ecx
mov dword [ebp - 0x28], 0x10007224
pop ecx
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipDisposeImage
push dword [ebp - 0x2c]
call sub.gdiplus.dll_GdiplusShutdown
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x100034a9
Capabilities:
Create thread

Disassembly:
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push esi
push esi
push 0x10003356
push esi
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
push esi
push esi
push esi
push 0x10003451
push esi
push esi
call edi
push eax
call ebx
push 1
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x10003646
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10003683
cmp byte [ebp - 0x190], 2
jne 0x1000367d
mov al, byte [ebp - 0x18f]
cmp al, 2
jne 0x1000367d
push 1
pop eax
leave
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
leave
ret

Function at 0x1000373d
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10003784
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x10003784
movsx eax, word [eax + 0xa]
push eax
lea eax, [ebp - 0xc]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x10003788
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100037a6
xor eax, eax
jmp 0x100037e5
push dword [ebp + 8]
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100037e3
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x100037e5
mov eax, esi
pop esi
leave
ret
Function at 0x10003a1e
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push edi
push esi
push esi
push esi
push 0x10003d80
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [esp + 0xc], esi
mov edi, eax
je 0x10003a43
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4
Function at 0x10004111
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x100040ff
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x100046c3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
jle 0x10004713
push esi
inc cl
movzx ecx, cl
mov edx, dword [eax + ecx*4 + 8]
mov dword [ebp + 8], ecx
lea esi, [eax + ecx*4 + 8]
mov cl, dl
add cl, bl
movzx ebx, cl
mov ecx, dword [eax + ebx*4 + 8]
mov dword [esi], ecx
mov esi, dword [ebp + 0xc]
add cl, dl
mov dword [eax + ebx*4 + 8], edx
movzx ecx, cl
add esi, edi
mov cl, byte [eax + ecx*4 + 8]
xor byte [esi], cl
mov ecx, dword [ebp + 8]
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x100046d8
pop esi
mov dword [eax + 4], ebx
pop edi
mov dword [eax], ecx
pop ebx
pop ebp
ret 0xc
Function at 0x10004e47
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov esi, 0x104
push edi
push esi
push 0x10090628
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
push 0x10090524
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x10090420
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, 0x1009072c
push esi
push ebx
push 0
call edi
mov eax, dword [0x10090a38]
mov ebp, dword [sym.imp.MSVCRT.dll__strlwr]
test eax, eax
je 0x10004ea2
push esi
mov esi, 0x10090934
push esi
push eax
call edi
push esi
call ebp
pop ecx
push ebx
call ebp
push ebx
call fcn.10004ebe
push eax
push 0x10090830
call sub.MSVCRT.dll_strcpy
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10005030
Capabilities:
Set file attributes

Disassembly:
push 6
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x100050c2
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x58], eax
ret

Function at 0x10005b93
Capabilities:
Accept command line arguments
Delete file
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, str.ServerMain
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x10005bdb
add esi, 0xb
push 0
push esi
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x10005bdb
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x10005bc2
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10005be5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
leave
ret 8
Function at 0x10005c57
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and byte [ebp - 0x10], 0
push edi
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
push dword [ebp + 8]
stosd dword es:[edi], eax
push dword [ebp + 0xc]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
pop edi
jne 0x10005ca6
mov eax, dword [ebp + 8]
shr eax, 0x10
test ax, ax
jne 0x10005c9e
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x100090b0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret 8
Function at 0x401190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x4011ac
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0
push 0x8800
push 0x59f318
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x4011f9
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push esi
push 0x59f370
push ecx
push edx
push str._s_x__s
mov ecx, 0x104
call section..text
mov esi, eax
mov eax, dword [ebp - 4]
add esp, 0x10
test eax, eax
je 0x4011f6
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402850
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor esi, esi
xor edi, edi
test ebx, ebx
je 0x402951
cmp dword [ebp + 8], esi
je 0x402951
test eax, eax
jne 0x40287c
mov eax, 0x80070057
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4028bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x402956
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4028d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x402943
mov esi, eax
jmp 0x402922
cmp dword [ebp - 0x10], esi
je 0x4028e4
mov esi, 0x80004005
jmp 0x402922
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40291b
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edi, eax
test edi, edi
jne 0x4028ff
mov esi, 0x8007000e
jmp 0x402922
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
push 0
lea edx, [ebp - 0x14]
push edx
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4028ca
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [ebx], edi
mov dword [edx], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jns 0x40293b
test edi, edi
je 0x40293b
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x402922
mov eax, 0x80004003
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402d60
Capabilities:
Check mutex on windows
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x5a1008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x59f3cc]
mov eax, dword [str.Global_]
mov edx, dword [0x59f3d0]
push esi
push 0x4c
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], eax
mov eax, dword [0x59f3d4]
lea ecx, [ebp - 0x58]
push 0
push ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [0x5a1388], 0
je 0x402dc0
mov eax, 0x8000ffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059e3c7
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x5a]
push eax
mov dword [ebp - 0x7c], 0x5c
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x402e00
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x402e9a
and eax, 0xffff
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059e3c7
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x7c]
push 0x10
lea ecx, [ebp - 0x78]
push ecx
lea eax, [edx + edx]
push eax
lea ecx, [ebp - 0x5a]
push ecx
call dword [sym.imp.SHLWAPI.dll_HashData]
mov esi, eax
test esi, esi
js 0x402e9a
push 0x2a
lea edx, [ebp - 0x5a]
push edx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x402dd9
lea ecx, [ebp - 0x68]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x5a1388], eax
test eax, eax
je 0x402e82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402e98
mov edx, dword [0x5a1388]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
mov dword [0x5a1388], 0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059e3c7
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x402e96
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0059e3c7
mov esp, ebp
pop ebp
ret
Function at 0x403540
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5a1008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x4035b3
cmp dword [0x5a140c], 0
jne 0x403571
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x403576
mov eax, dword [0x5a1410]
mov dword [ebp - 0x14], eax
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
mov dword [ebp - 0x10], eax
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
mov dword [ebp - 0xc], eax
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
mov dword [ebp - 8], eax
imul eax, eax, 0x19660d
add eax, 0x3c6ef35f
mov dword [0x5a1410], eax
push edi
lea ecx, [ebp - 0x14]
push ecx
call fcn.00405562
xor edi, edi
lea eax, [esi + 2]
mov dl, byte [ebp + edi - 0x14]
mov cl, dl
shr cl, 4
cmp cl, 0xa
jb 0x4035d5
add cl, 0x57
jmp 0x4035d8
add cl, 0x30
and dl, 0xf
mov byte [eax - 2], cl
cmp dl, 0xa
jb 0x4035e8
add dl, 0x57
jmp 0x4035eb
add dl, 0x30
mov byte [eax - 1], dl
mov dl, byte [ebp + edi - 0x13]
mov cl, dl
shr cl, 4
cmp cl, 0xa
jb 0x403601
add cl, 0x57
jmp 0x403604
add cl, 0x30
and dl, 0xf
mov byte [eax], cl
cmp dl, 0xa
jb 0x403613
add dl, 0x57
jmp 0x403616
add dl, 0x30
mov byte [eax + 1], dl
mov dl, byte [ebp + edi - 0x12]
mov cl, dl
shr cl, 4
cmp cl, 0xa
jb 0x40362c
add cl, 0x57
jmp 0x40362f
add cl, 0x30
and dl, 0xf
mov byte [eax + 2], cl
cmp dl, 0xa
jb 0x40363f
add dl, 0x57
jmp 0x403642
add dl, 0x30
mov byte [eax + 3], dl
mov dl, byte [ebp + edi - 0x11]
mov cl, dl
shr cl, 4
cmp cl, 0xa
jb 0x403658
add cl, 0x57
jmp 0x40365b
add cl, 0x30
and dl, 0xf
mov byte [eax + 4], cl
cmp dl, 0xa
jb 0x40366b
add dl, 0x57
jmp 0x40366e
add dl, 0x30
mov byte [eax + 5], dl
add edi, 4
add eax, 8
cmp edi, 0x10
jb 0x4035c2
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0059e3c7
mov esp, ebp
pop ebp
ret

Function at 0x40d797
Capabilities:
Check for peb beingdebugged flag

Disassembly:
xor edx, dword [esp]
call 0x40d797
pop ebp
push ecx
out dx, eax
xchg edx, eax
test byte [ebx + 0x330e242c], 0x14
and al, 0x83
les ecx, [eax]
Function at 0x40d828
Capabilities:
Check for peb beingdebugged flag

Disassembly:
sub dword [esp], 0x65
sub ecx, dword [esp]
add esp, 8
test eax, eax
je 0x40d7af
mov eax, dword [esp + 4]
or eax, dword [esp + 8]
or eax, dword [esp + 0xc]
call 0x40d73a
dec esi
jbe 0x40d7a1
sub eax, dword [esp]
sub eax, ecx
add eax, ecx
call 0x40d74e
ja 0x40d7b4
fsub qword [ecx + 0x5c297bf7]
sub dword [esp], 0x10
add eax, dword [esp]
add esp, 8
or eax, dword [esp + 0x10]
add edx, 0x723cf4a
xor edx, eax
push eax
mov eax, 0xb
add edx, 0x2e0fc6a
shl edx, 0
pause
xchg edx, edx
dec eax
jne 0x40d76a
pop eax
call fcn.0040d78a
int3
sub edx, 0x1faad88e
xor edx, eax
lea edx, [edx - 0x723cf4a]
add esp, 0x2cc
ror eax, 7
mov ecx, eax
add cl, al
enter 0xffffffffffff8907, 0xffffffffffffffc1
ror dword [esp], cl
pop eax
pop ecx
pop edx
add eax, 0x2175a25
neg eax
neg eax
call 0x40d7ce
add dword [esp], 0x35
push dword fs:[0]
mov dword fs:[0], esp
invd
call 0xb5689b74
enter 0xffffffffffffce1c, 0x59
lcall 0, 0x86e98dcd
add byte [0x82b63d6], al
push edx
pop eax
mov dword [0xd55c59ef], eax
add byte [eax + 0x39], bh
push edx
mov edx, 4
sub ecx, 0x23c2bfd
dec edx
jne 0x40d809
pop edx
add ecx, edx
neg edx
add edx, ecx
sub ecx, edx
xchg edx, ecx
call 0x40d828
mov ebx, 0x240c2b7c
call 0x40d834
xor dword [esi - 0x64], edi
sub byte [ebx + 0x30a242c], al
or al, 0x24
add esp, 8
push ecx
push edx
pop ecx
pop edx
xchg edx, ecx
add ecx, 0x8f0aff4
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
movzx eax, al
test eax, eax
je 0x40d85c
clts
add eax, 0xe
mov ecx, dword [esp + 0xc]
add dword [ecx + 0xb8], eax
xor eax, eax
ret

Function at 0x40d834
Capabilities:
Check for peb beingdebugged flag

Disassembly:
sub dword [esp], 0x65
sub ecx, dword [esp]
add esp, 8
test eax, eax
je 0x40d7af
mov eax, dword [esp + 4]
or eax, dword [esp + 8]
or eax, dword [esp + 0xc]
call 0x40d73a
dec esi
jbe 0x40d7a1
sub eax, dword [esp]
sub eax, ecx
add eax, ecx
call 0x40d74e
ja 0x40d7b4
fsub qword [ecx + 0x5c297bf7]
sub dword [esp], 0x10
add eax, dword [esp]
add esp, 8
or eax, dword [esp + 0x10]
add edx, 0x723cf4a
xor edx, eax
push eax
mov eax, 0xb
add edx, 0x2e0fc6a
shl edx, 0
pause
xchg edx, edx
dec eax
jne 0x40d76a
pop eax
call fcn.0040d78a
int3
sub edx, 0x1faad88e
xor edx, eax
lea edx, [edx - 0x723cf4a]
add esp, 0x2cc
ror eax, 7
mov ecx, eax
add cl, al
enter 0xffffffffffff8907, 0xffffffffffffffc1
ror dword [esp], cl
pop eax
pop ecx
pop edx
add eax, 0x2175a25
neg eax
neg eax
call 0x40d7ce
add dword [esp], 0x35
push dword fs:[0]
mov dword fs:[0], esp
invd
call 0xb5689b74
enter 0xffffffffffffce1c, 0x59
lcall 0, 0x86e98dcd
add byte [0x82b63d6], al
push edx
pop eax
mov dword [0xd55c59ef], eax
add byte [eax + 0x39], bh
push edx
mov edx, 4
sub ecx, 0x23c2bfd
dec edx
jne 0x40d809
pop edx
add ecx, edx
neg edx
add edx, ecx
sub ecx, edx
xchg edx, ecx
call 0x40d828
mov ebx, 0x240c2b7c
call 0x40d834
xor dword [esi - 0x64], edi
sub byte [ebx + 0x30a242c], al
or al, 0x24
add esp, 8
push ecx
push edx
pop ecx
pop edx
xchg edx, ecx
add ecx, 0x8f0aff4
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
movzx eax, al
test eax, eax
je 0x40d85c
clts
add eax, 0xe
mov ecx, dword [esp + 0xc]
add dword [ecx + 0xb8], eax
xor eax, eax
ret
Function at 0x59e686
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x59f608
call fcn.0059e91c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x5a1424
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x59e4a5
cmp eax, esi
jne 0x59e498
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x59e4a8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x59e47f
xor esi, esi
inc esi
mov eax, dword [0x5a1420]
cmp eax, esi
jne 0x59e4bb
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x59e4f6
mov eax, dword [0x5a1420]
test eax, eax
jne 0x59e4f0
mov dword [0x5a1420], esi
push 0x59f2e4
push 0x59f2d8
call fcn.0059e406
pop ecx
pop ecx
test eax, eax
je 0x59e4f6
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x59e5c0
mov dword [0x5a1044], esi
mov eax, dword [0x5a1420]
cmp eax, esi
jne 0x59e51a
push 0x59f2d4
push 0x59f2cc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x5a1420], 2
cmp dword [ebp - 0x1c], ebx
jne 0x59e527
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x5a1428], ebx
je 0x59e548
push 0x5a1428
call fcn.0059e8a4
pop ecx
test eax, eax
je 0x59e548
push ebx
push 2
push ebx
call dword [0x5a1428]
push dword [0x5a102c]
push dword [0x5a1030]
push dword [0x5a1028]
call fcn.004048d0
add esp, 0xc
mov dword [0x5a1040], eax
cmp dword [0x5a1034], ebx
jne 0x59e5a6
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x5a1044], ebx
jne 0x59e5b4
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x5a1040]
call fcn.0059e961
ret
call fcn.0059ea4b
jmp 0x59e45d
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.004014fb
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret