joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001413
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1001898
call fcn.010015a4
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, 0x1002378
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001228
cmp eax, esi
jne 0x100121b
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100122b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001202
xor esi, esi
inc esi
mov eax, dword [0x1002374]
cmp eax, esi
jne 0x100123e
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001279
mov eax, dword [0x1002374]
test eax, eax
jne 0x1001273
mov dword [0x1002374], esi
push 0x1001094
push 0x1001088
call fcn.0100117f
pop ecx
pop ecx
test eax, eax
je 0x1001279
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1001343
mov dword [0x1002038], esi
mov eax, dword [0x1002374]
cmp eax, esi
jne 0x100129d
push 0x1001084
push 0x100107c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1002374], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10012aa
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100237c], ebx
je 0x10012cb
push 0x100237c
call fcn.01001519
pop ecx
test eax, eax
je 0x10012cb
push ebx
push 2
push ebx
call dword [0x100237c]
push dword [0x1002020]
push dword [0x1002024]
push dword [0x100201c]
call fcn.01001175
add esp, 0xc
mov dword [0x1002034], eax
cmp dword [0x1002028], ebx
jne 0x1001329
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 [0x1002038], ebx
jne 0x1001337
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002034]
call fcn.010015e9
ret
call fcn.010016f1
jmp 0x10011e0

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
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
pop eax
nop
nop
nop
nop
mov esi, 0x28b14c4d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x718d6e00
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1001833
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push 0x1001198
push 0x80000002
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100189b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x100117c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001892
cmp dword [ebp - 0x10], 4
jne 0x1001892
cmp dword [ebp - 8], 1
jne 0x1001892
inc edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret

Function at 0x1001a58
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, 0x1005018
push esi
call fcn.010018a5
test eax, eax
jne 0x1001a7a
push 0xffffffffffffffff
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [0x1005018]
xor eax, eax
cmp ecx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
je 0x1001ae6
mov eax, dword [ebp + 8]
mov ebx, dword [esi + 8]
test dword [ebp + 0xc], ebx
je 0x1001ad7
xor edi, edi
mov di, word [eax]
mov edx, eax
jmp 0x1001aaf
inc ecx
inc ecx
test di, di
je 0x1001aef
inc edx
inc edx
mov di, word [edx]
cmp di, word [ecx]
je 0x1001aa3
cmp word [edx], 0
jne 0x1001ad7
sub edx, eax
sar edx, 1
cmp edx, dword [ebp - 8]
jle 0x1001ad2
mov dword [ebp - 8], edx
mov dword [ebp - 4], 1
mov dword [ebp - 0xc], ebx
jmp 0x1001ad7
jne 0x1001ad7
inc dword [ebp - 4]
add esi, 0xc
mov ecx, dword [esi]
test ecx, ecx
jne 0x1001a92
cmp dword [ebp - 4], 1
je 0x1001af4
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
jmp 0x1001af7
mov eax, dword [esi + 8]
jmp 0x1001af7
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10021b9
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1005238]
push ebx
push edi
xor edi, edi
xor ebx, ebx
inc edi
cmp dword [0x1005ea0], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
jne 0x10021e5
mov eax, edi
jmp 0x1002370
push 0x1216
call fcn.01001765
test eax, eax
pop ecx
je 0x1002357
push esi
push ebx
lea eax, [ebp - 0x44]
push eax
push 0x10f5
call fcn.01001600
test eax, eax
je 0x1002357
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
push dword [ebp - 0x44]
push 0x14a4
call fcn.01001765
test eax, eax
pop ecx
pop ecx
je 0x1002357
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0xfffffffffffffff6
call fcn.0100166f
test eax, eax
je 0x1002296
push ebx
lea eax, [ebp - 0x40]
push eax
push 0x10
lea eax, [ebp - 0x3c]
push eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
cmp eax, ebx
je 0x100236d
lea eax, [ebp - 0x3c]
push 0xd
push eax
call esi
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x3c]
jne 0x1002292
push 0xa
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x1002306
push 0xa
lea eax, [ebp - 0x3c]
push eax
call esi
pop ecx
pop ecx
mov word [eax], bx
jmp 0x1002306
push 0xd
jmp 0x1002288
push dword [sym.imp.msvcrt.dll__iob]
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
push 0x10
push eax
call dword [sym.imp.msvcrt.dll_fgets]
add esp, 0xc
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x40], ebx
je 0x100236d
lea eax, [ebp - 0x18]
push 0xa
push eax
call dword [sym.imp.msvcrt.dll_strchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x10022db
mov byte [eax], bl
lea eax, [ebp - 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10022e1
push 0x10
sub eax, edx
lea ecx, [ebp - 0x3c]
push ecx
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edi, edi
mov dword [ebp - 0x40], eax
inc edi
cmp dword [ebp - 0x40], ebx
je 0x100236d
lea eax, [ebp - 0x3c]
push 0x60
push eax
call dword [sym.imp.msvcrt.dll__wcsupr]
pop ecx
push eax
call fcn.01001a58
cmp eax, 0x40
je 0x100236d
cmp eax, 0x20
je 0x100235e
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 3
jge 0x1002362
push 0xeac
call fcn.01001765
test eax, eax
pop ecx
je 0x1002357
push ebx
lea eax, [ebp - 0x44]
push eax
push 0x10f5
call fcn.01001600
test eax, eax
jne 0x1002216
push edi
call dword [sym.imp.msvcrt.dll_exit]
mov eax, edi
jmp 0x100236f
push 0xead
call fcn.01001765
pop ecx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01002c44
leave
ret
Function at 0x1002672
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edi
mov esi, 0x10060e0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
push dword [0x1005eac]
call sub.NETAPI32.dll_NetScheduleJobEnum
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x10026c6
cmp eax, 0xea
jne 0x100280c
cmp dword [ebp - 0x1c], edi
je 0x10027f4
cmp dword [ebp - 0x10], 1
jne 0x10026f0
push 0x121c
call fcn.01001765
test eax, eax
pop ecx
je 0x100281c
call fcn.01001f8c
mov dword [ebp - 0x10], edi
cmp dword [ebp - 4], edi
jbe 0x10027d8
mov edi, dword [ebp - 8]
add edi, 0xd
dec dword [ebp - 4]
test byte [edi], 2
je 0x100274a
push 0
lea eax, [ebp - 0xc]
push eax
push 0x10f6
call fcn.01001600
test eax, eax
je 0x100281c
push dword [ebp - 0xc]
push 0x1001258
push 0x400
push esi
call fcn.01001954
push esi
call ebx
add esp, 0x14
push eax
push esi
call fcn.010016af
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100276c
push 0x1001254
push 0x1001258
push 0x400
push esi
call fcn.01001954
push esi
call ebx
add esp, 0x14
push eax
push esi
call fcn.010016af
push dword [edi - 0xd]
push 0x1001244
push 0x400
push esi
call fcn.01001954
push esi
call ebx
add esp, 0x14
push eax
push esi
call fcn.010016af
xor eax, eax
mov al, byte [edi]
push eax
xor eax, eax
mov al, byte [edi - 1]
push eax
push dword [edi - 5]
push 0
call fcn.01001d08
push dword [edi - 9]
call fcn.01002381
push dword [edi + 3]
push 0x1001220
push 0x400
push esi
call fcn.01001954
push esi
call ebx
add esp, 0x14
push eax
push esi
call fcn.010016af
add edi, 0x14
cmp dword [ebp - 4], 0
ja 0x10026ff
xor edi, edi
dec dword [ebp - 4]
cmp dword [ebp - 8], edi
je 0x10027eb
push dword [ebp - 8]
call sub.NETAPI32.dll_NetApiBufferFree
mov dword [ebp - 8], edi
cmp dword [ebp - 0x14], edi
jne 0x1002697
cmp dword [ebp - 0x10], 1
jne 0x1002805
push 0xe63
call fcn.01001765
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push eax
call fcn.01001765
test eax, eax
pop ecx
je 0x100281c
mov eax, dword [ebp - 0x14]
jmp 0x1002807
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x10029f9
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1005238]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
xor ebx, ebx
push edi
xor edi, edi
mov dword [0x1005ea0], ebx
mov dword [0x10060c8], ebx
mov dword [0x10060cc], ebx
mov dword [0x10068e0], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov esi, eax
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
cmp esi, 0x3a4
je 0x1002a6e
cmp esi, 0x3a8
je 0x1002a6e
cmp esi, 0x3b4
jbe 0x1002a63
cmp esi, 0x3b6
jbe 0x1002a6e
xor esi, esi
mov dword [0x1005ea4], ebx
inc esi
jmp 0x1002a77
xor esi, esi
inc esi
mov dword [0x1005ea4], esi
push ebx
call sub.KERNEL32.dll_SetThreadUILanguage
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x1001278
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1002ab1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2710
call fcn.01001765
pop ecx
pop ecx
push esi
jmp 0x1002bc5
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x1005ea8], eax
je 0x1002a98
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, ebx
jne 0x1002ae8
push 0x2711
call fcn.01001765
jmp 0x1002aaa
lea ecx, [ebp - 0x228]
push ecx
push eax
push dword [ebp + 8]
call fcn.010023dc
test eax, eax
jne 0x1002b04
push ebx
call fcn.01001ff6
jmp 0x1002aab
mov eax, dword [ebp - 0x228]
sub eax, ebx
je 0x1002b7c
dec eax
je 0x1002b75
dec eax
je 0x1002b6e
dec eax
dec eax
je 0x1002b4d
dec eax
je 0x1002b28
dec eax
jne 0x1002b83
push esi
call fcn.01001ff6
xor edi, edi
jmp 0x1002b83
call fcn.010021b9
test eax, eax
je 0x1002b83
push 0xffffffffffffffff
push ebx
push dword [0x1005eac]
call sub.NETAPI32.dll_NetScheduleJobDel
mov edi, eax
cmp edi, ebx
je 0x1002b83
cmp edi, 0xede
jmp 0x1002b63
mov eax, dword [0x10068e4]
push eax
push eax
push dword [0x1005eac]
call sub.NETAPI32.dll_NetScheduleJobDel
mov edi, eax
cmp edi, ebx
je 0x1002b83
push edi
call fcn.01001765
pop ecx
jmp 0x1002b83
call fcn.010019ee
jmp 0x1002b81
call fcn.0100282a
jmp 0x1002b81
call fcn.01002672
mov edi, eax
push 0x1005018
call fcn.010018e1
push 0x1005088
call fcn.010018e1
push dword [0x1005820]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [0x1005824]
call esi
push dword [0x1005834]
call esi
push dword [0x1005838]
call esi
xor eax, eax
cmp edi, ebx
setne al
push eax
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x1002d5c
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x10012c0
call fcn.01002f14
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1002d97
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002d97
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1002daf
cmp eax, 0x20b
je 0x1002d9c
mov dword [ebp - 0x1c], edi
jmp 0x1002dc3
cmp dword [ecx + 0x84], 0xe
jbe 0x1002d97
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1002dbd
cmp dword [ecx + 0x74], 0xe
jbe 0x1002d97
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10068e8], 0xffffffff
or dword [0x10068ec], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1005848]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1005844]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10068f0], eax
call fcn.01002f0a
cmp dword [0x100523c], edi
jne 0x1002e1e
push fcn.01002f0a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01002ef3
push 0x1005010
push 0x100500c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1005840]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100583c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1005008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010029f9
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1002e95
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002eca
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002f4f
ret
Function at 0x102e335
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
rdtsc
sub esp, 0x2c
mov dword [0x1042fc4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
cmp dword [0x1043420], 0
mov dword [0x10430d0], eax
jne 0x102e379
push 0x10433e0
call fcn.0100d94b
test eax, eax
jl 0x102e51c
mov dword [0x1043420], 1
push esi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, 0x1000000
mov eax, dword [0x100003c]
mov ecx, dword [eax + 0x1000050]
add ecx, edx
mov eax, dword [ebp - 0x24]
lea esi, [eax - 0x80000000]
cmp ecx, esi
jb 0x102e3a9
lea eax, [ecx - 0x80000000]
mov ecx, dword [ebp - 0x20]
add eax, 0xffff
lea esi, [ecx - 0x80000000]
and eax, 0xffff0000
mov dword [0x1042ebc], eax
cmp esi, edx
pop esi
jb 0x102e3cb
mov ecx, 0x81000000
mov dword [0x1043410], ecx
xor ecx, ecx
mov word [0x1043410], cx
mov ecx, dword [0x1043410]
sub ecx, eax
shr ecx, 0x10
mov dword [0x1043474], ecx
xor eax, eax
test eax, eax
jl 0x102e51c
mov ecx, dword [0x1042010]
jmp 0x102e41d
imul ecx, ecx, 0x18
add ecx, 0x10430a0
push ecx
call fcn.0100d94b
test eax, eax
jl 0x102e422
mov ecx, dword [0x1042010]
inc ecx
mov dword [0x1042010], ecx
cmp ecx, 2
jb 0x102e3fd
mov dword [ebp - 4], eax
test eax, eax
jl 0x102e51c
mov eax, dword [0x10049b0]
test eax, eax
je 0x102e4bc
lea eax, [ebp - 8]
push eax
mov eax, dword [0x1021358]
mov ecx, dword [0x10049b0]
push 0x40
imul eax, ecx
push eax
push 0x1039008
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x102e47d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x102e46f
mov eax, 0x54f
test eax, eax
jle 0x102e4be
and eax, 0xffff
or eax, 0x80070000
jmp 0x102e4be
mov eax, dword [0x10049b0]
xor edx, edx
test eax, eax
jbe 0x102e4bc
mov eax, dword [0x1021358]
mov ecx, dword [0x1021358]
imul eax, edx
test ecx, ecx
lea eax, [eax + 0x1039008]
je 0x102e4a7
mov byte [eax], 0
inc eax
dec ecx
jne 0x102e4a0
mov eax, dword [0x10049b0]
mov dword [edx*4 + 0x10430d4], 0xb4c4
inc edx
cmp edx, eax
jb 0x102e488
xor eax, eax
test eax, eax
jl 0x102e51c
mov ecx, dword [0x1042f00]
test ecx, ecx
je 0x102e505
mov eax, dword [0x1042ef8]
lea edx, [eax + 0x1042f28]
add eax, dword [0x1042efc]
mov dword [0x1042f10], edx
mov dword [0x1042f08], 0x1042f28
lea edx, [eax + 0x1042f28]
mov dword [0x1042f18], edx
lea eax, [eax + ecx + 0x1042f28]
mov dword [0x1042f20], eax
and dword [ebp - 4], 0
push edi
lea edi, [ebp - 4]
mov eax, 0x71961249
mov eax, dword [ebp - 4]
test eax, eax
pop edi
jl 0x102e51c
xor eax, eax
leave
ret
Function at 0x405ad1
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x40aca8
call fcn.00405fb4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x40cdec
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x40588c
cmp eax, esi
jne 0x40587f
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x40588f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405866
xor esi, esi
inc esi
mov eax, dword [0x40cde8]
cmp eax, esi
jne 0x4058a2
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4058d1
mov eax, dword [0x40cde8]
test eax, eax
jne 0x4058cb
mov dword [0x40cde8], esi
push 0x401230
push 0x401224
call fcn.004057c8
pop ecx
pop ecx
test eax, eax
je 0x4058d1
jmp 0x4059f5
mov dword [0x40c370], esi
mov eax, dword [0x40cde8]
cmp eax, esi
jne 0x4058f5
push 0x401220
push 0x401214
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40cde8], 2
cmp dword [ebp - 0x20], ebx
jne 0x405902
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x40cdf4], ebx
je 0x405923
push 0x40cdf4
call fcn.00405f29
pop ecx
test eax, eax
je 0x405923
push ebx
push 2
push ebx
call dword [0x40cdf4]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x4059f5
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x40598d
cmp cx, bx
je 0x405948
cmp dword [ebp - 0x1c], ebx
jne 0x40598d
movzx ecx, word [eax]
cmp cx, bx
je 0x40595d
cmp cx, 0x20
ja 0x40595d
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x405948
test byte [ebp - 0x40], 1
je 0x405969
movzx ecx, word [ebp - 0x3c]
jmp 0x40596c
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x40c36c], eax
cmp dword [0x40c360], ebx
jne 0x4059d2
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x40599e
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x405932
cmp dword [0x40c370], ebx
jne 0x4059e0
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40c36c]
jmp 0x405a01
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00405ff9
ret
call fcn.004061a7
jmp 0x405829
Function at 0x406866
Capabilities:
Get file size

Disassembly:
push 0x20
push 0x40ad30
call fcn.00405fb4
mov edi, ecx
mov dword [ebp - 0x28], edi
cmp dword [edi + 0x10], 0xffffffff
je 0x40699e
call fcn.00406625
test eax, eax
je 0x40699e
xor ebx, ebx
push ebx
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
test byte [edi + 0xc], 0x14
mov esi, 0x200000
je 0x4068ad
mov esi, 0x2d00000
cmp eax, 0xffffffff
je 0x40698e
cmp eax, esi
jbe 0x40698e
mov dword [ebp - 0x20], eax
push ebx
push ebx
push ebx
push 4
push ebx
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x40698e
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x406964
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
add eax, ebx
shr esi, 1
mov ecx, eax
sub ecx, esi
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], eax
jae 0x406915
mov edx, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
cmp byte [edx], 0xa
jne 0x406902
cmp dword [ebp - 0x1c], eax
jne 0x40691a
mov dword [ebp - 0x1c], ecx
sub eax, dword [ebp - 0x1c]
mov esi, eax
push esi
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x40695d
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
je 0x40698c
push 0
push 0
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
mov eax, dword [0x40c6ac]
cmp eax, ebx
je 0x40699e
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00405ff9
ret
Function at 0x406ec8
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebx], edi
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x20c], edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - 0x210], esi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 9
push edi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00409c51
cmp eax, edi
jl 0x40705f
push dword [ebp - 0x214]
mov esi, 0x100
push dword [0x40c6b0]
lea eax, [ebp - 0x20c]
push 0x402b84
push esi
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00406b3f
add esp, 0x20
cmp eax, edi
jl 0x40705f
test dword [0x40c6b8], 4
je 0x40701f
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x214], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x406fec
push esi
push edi
push edi
push 0x402478
push 0x101
lea eax, [ebp - 0x208]
push eax
call fcn.004069e3
cmp eax, edi
jl 0x40705f
lea eax, [ebp - 0x208]
push eax
push 0x402b7c
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00406b3f
add esp, 0x1c
cmp eax, edi
jl 0x40705f
test dword [0x40c6b8], 8
je 0x40705b
mov eax, dword [ebp - 0x218]
push dword [eax]
lea eax, [ebp - 0x20c]
push 0x402b7c
push esi
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00406b3f
add esp, 0x1c
cmp eax, edi
jge 0x407066
cmp eax, 0x8007007a
jne 0x40707c
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x21c]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x20c]
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405ae0
leave
ret 0x10