joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x401443
pop dword [ebp - 0x48]
mov eax, 0xb8d5ca3e
sub eax, 0xb895b5fb
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xd8bbf7a9
sub dword [ebp - 0x58], 0x8a69b25e
mov dword [ebp - 0x54], 0x6156469c
add dword [ebp - 0x54], 0xd0dd05a9
mov dword [ebp - 0x50], 0x7cff8459
add dword [ebp - 0x50], 0xcf4cbfd5
mov dword [ebp - 0x4c], 0x1e50524c
add dword [ebp - 0x4c], 0xe1afadb4
lea eax, [ebp - 0x58]
push eax
mov eax, 0x23655cad
add eax, 0xdcdb23cb
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x41416ac6
sub dword [ebp - 0x58], 0xcccf0170
mov dword [ebp - 0x54], 0x8ba393da
sub dword [ebp - 0x54], 0x4a373265
mov dword [ebp - 0x50], 0xb4560f42
sub dword [ebp - 0x50], 0x50e6a2d6
mov dword [ebp - 0x4c], 0x3837d25f
add dword [ebp - 0x4c], 0xc7c82da1
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x37fae7d1
sub eax, 0x37ba6755
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x39eb9
push 0
call eax
mov ecx, 0x7ec875f9
add ecx, 0x8137d834
mov ebx, eax
mov esi, 0x451400
add esi, dword [ebp - 0x48]
mov edx, 0x51ed3642
sub edx, 0x92505ef
add dword [ebp - 0x40], esi
mov edi, dword [esi]
xor dword [ebp - 0x3c], 0x8ea46ee6
sub edi, edx
xor dword [ebp - 4], 0x8b4fcc33
mov dword [ebx], edi
xor dword [ebp - 0x2c], 0x8fdcc815
add ebx, 4
add esi, 0x2cfc349c
sub esi, 0x2cfc3498
loop 0x40155f
add eax, 0x608278b1
sub eax, 0x60814d2a
mov ebx, eax
add eax, 0x52e96fac
add eax, 0xad169059
mov ecx, 0x3b4b6800
sub ecx, 0x3b0b6800
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x1004cd2
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x412]
push edi
push eax
mov word [ebp - 0x414], di
call sub.msvcrt.dll_memset
add esp, 0x18
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
je 0x1004df7
cmp eax, esi
ja 0x1004df7
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01002da9
test eax, eax
jl 0x1004dee
push 0x1002474
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01002de3
test eax, eax
jl 0x1004dee
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
jne 0x1004d8c
push edi
push edi
push 0x1002400
jmp 0x1004dfe
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01005a56
test eax, eax
je 0x1004db4
push edi
push edi
push 0x1002370
jmp 0x1004dfe
mov eax, dword [ebp - 0x418]
movzx ecx, word [ebp - 0x418]
shr eax, 0x10
imul eax, eax, 0x64
add eax, ecx
cmp eax, dword [ebp + 8]
jae 0x1004dde
push dword [ebp + 8]
push eax
push 0x10022b8
call fcn.010063d9
jmp 0x1004e03
push edi
push edi
push 0x1002220
call fcn.01006459
xor al, al
jmp 0x1004e05
push edi
push edi
push 0x10021a0
jmp 0x1004dfe
push edi
push edi
push 0x1002118
call fcn.01006459
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01006d61
leave
ret 4
Function at 0x1004e1a
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push dword [ebp + 8]
push 0x1002490
call fcn.01006459
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop esi
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x58], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, 0x1001f54
push edi
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], 5
call esi
push dword [ebp + 8]
mov ebx, eax
call esi
lea esi, [ebx + eax + 3]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x1004ea4
mov dword [ebp - 4], 0xe
jmp 0x1004f35
push 0x1002488
push esi
push ebx
call fcn.01002da9
test eax, eax
jl 0x1004f27
push dword [ebp + 8]
push esi
push ebx
call fcn.01002de3
test eax, eax
jl 0x1004f27
push 0x1002488
push esi
push ebx
call fcn.01002de3
test eax, eax
jl 0x1004f27
push edi
push esi
push ebx
call fcn.01002de3
test eax, eax
jl 0x1004f27
lea eax, [ebp - 0x14]
push eax
xor esi, esi
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1004f09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1004f2e
push dword [ebp - 0x14]
call fcn.01004c63
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1004f2e
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x1004f2e
mov dword [ebp - 4], 0x643
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1004f46
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], 0
je 0x1004f51
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1004f60
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
and dword [ebp - 4], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop esi
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 8]
mov dword [ebp - 0x58], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], 5
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [edi + eax + 9]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
jne 0x1004fd8
mov dword [ebp - 4], 0xe
jmp 0x100508a
push ebx
mov ebx, 0x1002488
push ebx
push esi
push edi
call fcn.01002da9
test eax, eax
jl 0x100507b
push dword [ebp + 8]
push esi
push edi
call fcn.01002de3
test eax, eax
jl 0x100507b
push ebx
push esi
push edi
call fcn.01002de3
test eax, eax
jl 0x100507b
push 0x1002540
push esi
push edi
call fcn.01002de3
test eax, eax
jl 0x100507b
push dword [ebp + 0xc]
push esi
push edi
call fcn.01002de3
test eax, eax
jl 0x100507b
push ebx
push esi
push edi
call fcn.01002de3
test eax, eax
jl 0x100507b
lea eax, [ebp - 0x14]
push eax
xor esi, esi
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100505d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1005082
push dword [ebp - 0x14]
call fcn.01004c63
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1005082
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x1005082
mov dword [ebp - 4], 0x643
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
cmp dword [ebp - 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100509b
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], 0
je 0x10050a6
push dword [ebp - 0x10]
call esi
push dword [ebp - 4]
push 0x10024e8
call fcn.0100635c
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x1005165
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push dword [ebp + 0x14]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
push dword [ebp + 0x18]
mov ebx, eax
call esi
lea esi, [ebx + eax + 2]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
cmp ebx, edi
pop ecx
jne 0x10051c7
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.01004671
push eax
push dword [ebp + 8]
call fcn.010059fb
push 0xe
pop esi
jmp 0x1005308
lea eax, [esi + esi]
push eax
push edi
push ebx
mov dword [ebp - 0xc], eax
call sub.msvcrt.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp + 0x14]
call edi
test eax, eax
je 0x1005291
mov eax, dword [ebp - 8]
test eax, eax
je 0x10051fc
and word [eax], 0
push dword [ebp + 0x18]
push esi
push ebx
call fcn.01002de3
test eax, eax
jge 0x1005212
movzx esi, ax
jmp 0x1005299
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x100526a
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0xc]
push ebx
call edi
mov esi, eax
cmp esi, dword [ebp - 0xc]
jbe 0x100528d
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
jne 0x1005282
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.01004671
push eax
push dword [ebp + 8]
call fcn.010059fb
push 0xe
jmp 0x10052da
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x10052b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [ebp + 0xc]
push ebx
push 0x17
push dword [ebp + 0x10]
call fcn.01004671
push eax
push dword [ebp + 8]
call fcn.01006183
jmp 0x10052f2
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10052dd
mov ecx, dword [ebp + 0xc]
push esi
push 0x1c
push dword [ebp + 0x10]
call fcn.01004671
push eax
push dword [ebp + 8]
call fcn.01006183
push 2
pop esi
jmp 0x10052f2
push dword [ebp + 0x1c]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010050c1
mov esi, eax
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp dword [ebp - 4], 0
pop ecx
je 0x1005308
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1005967
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x10025e8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
je 0x1005995
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1005995
xor al, al
jmp 0x1005997
mov al, 1
pop ebp
ret 4

Function at 0x1005a56
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor edi, edi
or ebx, 0xffffffff
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x1005ad5
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x1005a99
mov dword [ebp - 4], 8
jmp 0x1005ade
push edi
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1005ad5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0x1002658
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1005ade
cmp dword [ebp - 0x14], 0
je 0x1005ade
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x1005ade
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test edi, edi
je 0x1005ae9
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1005af2
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
test eax, eax
pop edi
pop esi
pop ebx
je 0x1005b01
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
leave
ret 0xc

Function at 0x1005d9d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7e
push eax
mov dword [section..data], eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x10025b0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1005dfe
cmp word [ebp - 0x84], 0x31
jne 0x1005dfe
mov dword [section..data], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01006d61
leave
ret
Function at 0x100635c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [section..data], 0xffffffff
jne 0x100636f
call fcn.01005d9d
cmp dword [section..data], 0
je 0x10063d0
cmp dword [ebp + 8], 0
je 0x10063d0
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 0xd
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
je 0x10063ce
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push edi
call fcn.01002e24
add esp, 0x10
test eax, eax
push edi
jge 0x10063c8
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x10063ce
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
pop ebp
ret 8

Function at 0x10063d9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [section..data], 0xffffffff
jne 0x10063ec
call fcn.01005d9d
cmp dword [section..data], 0
je 0x1006450
cmp dword [ebp + 8], 0
je 0x1006450
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 0x19
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
je 0x100644e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push edi
call fcn.01002e24
add esp, 0x14
test eax, eax
push edi
jge 0x1006448
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x100644e
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1006459
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [section..data], 0xffffffff
jne 0x100646d
call fcn.01005d9d
push ebx
xor ebx, ebx
cmp dword [section..data], ebx
je 0x10064b8
cmp dword [ebp + 8], ebx
je 0x10064b8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push dword [ebp + 8]
call esi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
je 0x100649b
push dword [ebp + 0xc]
call esi
mov edi, eax
jmp 0x100649d
xor edi, edi
cmp dword [ebp + 0x10], ebx
je 0x10064a9
push dword [ebp + 0x10]
call esi
mov ebx, eax
test edi, edi
jne 0x10064bd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [ebp - 4]
lea eax, [ebx + edi]
lea esi, [eax + ecx + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
je 0x10064b6
test ebx, ebx
jne 0x10064fa
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push edi
call fcn.01002e24
add esp, 0x10
jmp 0x100650d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push edi
call fcn.01002e24
add esp, 0x14
test eax, eax
push edi
jge 0x10064b0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x10064b6
Function at 0x1007110
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1007123
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100711f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1007150
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x100718f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1007185
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1007191
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1007175
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4028c0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
test eax, eax
je 0x402901
call fcn.004034e0
test eax, eax
je 0x402908
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x402e00
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x94], eax
test eax, eax
je 0x402901
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x402901
mov ecx, dword [eax]
lea edx, [esp + 8]
push edi
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x9c]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 8]
push 0
mov edi, ecx
mov eax, dword [esi + 0x9c]
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x54]
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [esi + 0x50]
push ecx
mov ecx, dword [esi + 0x7c]
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
pop edi
jne 0x402901
mov edx, dword [esi + 0x20]
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x402980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402a3f
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x402a3f
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push ebp
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x402a3f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x402a38
test edi, edi
je 0x402a38
mov ecx, ebp
mov esi, eax
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
push ebp
push ebx
call fcn.00402210
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x10001000
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor eax, eax
je 0x10001010
adc dword [edx], esp
xor ebp, dword [edx]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x6f432f2e
mov dword [ebp - 0x3c], 0x6e65746e
mov dword [ebp - 0x38], 0x79545f74
mov dword [ebp - 0x34], 0x2e736570
mov dword [ebp - 0x30], 0x6c6d78
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
nop
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x1c]
push ecx
push edx
mov dword [ebp - 0x1c], 0x74726956
mov dword [ebp - 0x18], 0x416c6175
mov dword [ebp - 0x14], 0x636f6c6c
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 4
push 0x1000
push edi
push 0
call eax
push 0
mov ebx, eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x2c]
push ecx
push edx
mov dword [ebp - 0x2c], 0x74726956
mov dword [ebp - 0x28], 0x506c6175
mov dword [ebp - 0x24], 0x65746f72
mov word [ebp - 0x20], 0x7463
mov byte [ebp - 0x1e], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push edi
push ebx
call eax
push 0
push ebx
push 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10003ff6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10008a80]
jne 0x10004000
repz ret
jmp fcn.1000517d
Function at 0x10004e12
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10008a80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10001395
and dword [ebp - 0x14], 0
cmp dword [0x1000945c], 0
mov dword [ebp - 0x18], eax
jne 0x10004ec5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10004f6d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10004f6d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000945c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10009460], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10009464], eax
call edi
push eax
call esi
mov dword [0x1000946c], eax
test eax, eax
je 0x10004ec5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10009468], eax
mov eax, dword [0x10009468]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10004f1e
cmp dword [0x1000946c], ecx
je 0x10004f1e
push eax
call esi
push dword [0x1000946c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10004f1e
test ebx, ebx
je 0x10004f1e
call edi
test eax, eax
je 0x10004f15
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10004f15
test byte [ebp - 8], 1
jne 0x10004f1e
or dword [ebp + 0x10], 0x200000
jmp 0x10004f51
mov eax, dword [0x10009460]
cmp eax, dword [ebp - 0x18]
je 0x10004f51
push eax
call esi
test eax, eax
je 0x10004f51
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10004f51
mov eax, dword [0x10009464]
cmp eax, dword [ebp - 0x18]
je 0x10004f51
push eax
call esi
test eax, eax
je 0x10004f51
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000945c]
call esi
test eax, eax
je 0x10004f6d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10004f6f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003ff6
leave
ret