joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101c068
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 [0x104d00c], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
cmp dword [0x104d0b0], 0
mov dword [0x104d468], eax
jne 0x101c0ac
push 0x104e3b0
call fcn.0100ea91
test eax, eax
jl 0x101c24f
mov dword [0x104d0b0], 1
lea eax, [ebp - 0x2c]
push esi
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 0x101c0dc
lea eax, [ecx - 0x80000000]
mov ecx, dword [ebp - 0x20]
lea esi, [ecx - 0x80000000]
add eax, 0xffff
and eax, 0xffff0000
mov dword [0x104d4ac], eax
cmp esi, edx
pop esi
jb 0x101c0fe
mov ecx, 0x81000000
mov dword [0x104e410], ecx
xor ecx, ecx
mov word [0x104e410], cx
mov ecx, dword [0x104e410]
sub ecx, eax
shr ecx, 0x10
xor eax, eax
mov dword [0x104d464], ecx
test eax, eax
jl 0x101c24f
mov ecx, dword [0x104d540]
jmp 0x101c150
imul ecx, ecx, 0x18
add ecx, 0x104e308
push ecx
call fcn.0100ea91
test eax, eax
jl 0x101c155
mov ecx, dword [0x104d540]
inc ecx
mov dword [0x104d540], ecx
cmp ecx, 4
jb 0x101c130
test eax, eax
mov dword [ebp - 4], eax
jl 0x101c24f
mov eax, dword [0x10055a0]
test eax, eax
je 0x101c1ef
lea eax, [ebp - 8]
push eax
mov ecx, dword [0x10055a0]
mov eax, dword [0x100aa54]
imul eax, ecx
push 0x40
push eax
push 0x1044008
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x101c1b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x101c1a2
mov eax, 0x54f
test eax, eax
jle 0x101c1f1
and eax, 0xffff
or eax, 0x80070000
jmp 0x101c1f1
mov eax, dword [0x10055a0]
xor edx, edx
test eax, eax
jbe 0x101c1ef
mov ecx, dword [0x100aa54]
mov eax, dword [0x100aa54]
imul eax, edx
lea eax, [eax + 0x1044008]
test ecx, ecx
je 0x101c1da
mov byte [eax], 0
inc eax
dec ecx
jne 0x101c1d3
mov eax, dword [0x10055a0]
mov dword [edx*4 + 0x104d078], 0xc4a6
inc edx
cmp edx, eax
jb 0x101c1bb
xor eax, eax
test eax, eax
jl 0x101c24f
mov ecx, dword [0x104e428]
test ecx, ecx
je 0x101c238
mov eax, dword [0x104e420]
lea edx, [eax + 0x104e450]
add eax, dword [0x104e424]
mov dword [0x104e438], edx
lea edx, [eax + 0x104e450]
lea eax, [eax + ecx + 0x104e450]
mov dword [0x104e430], 0x104e450
mov dword [0x104e440], edx
mov dword [0x104e448], eax
and dword [ebp - 4], 0
push edi
lea edi, [ebp - 4]
mov eax, 0x1a807fe8
mov eax, dword [ebp - 4]
pop edi
test eax, eax
jl 0x101c24f
xor eax, eax
leave
ret
Function at 0x101c268
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x104d41c], 0
push ebx
jne 0x101c2e5
push eax
push ebx
push ecx
push edx
xor eax, eax
cpuid
xor eax, eax
xor ebx, 0x756e6547
sete al
xor ebx, ebx
xor ecx, 0x6c65746e
sete bl
and eax, ebx
xor ecx, ecx
xor edx, 0x49656e69
sete cl
and eax, ecx
mov dword [ebp - 4], eax
mov eax, 1
cpuid
xor ecx, ecx
xor edx, edx
mov ebx, 0xff0
and ebx, eax
mov dword [ebp - 8], ebx
pop edx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 4], 0
mov eax, 1
je 0x101c2d9
cmp dword [ebp - 8], 0x660
jae 0x101c2d9
xor eax, eax
mov eax, dword [eax*4 + 0x104d010]
mov dword [0x104d41c], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x40], 0x67452301
mov dword [eax + 0x44], 0xefcdab89
mov dword [eax + 0x48], 0x98badcfe
mov dword [eax + 0x4c], 0x10325476
mov dword [eax + 0x50], 0xc3d2e1f0
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x8f3058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008f31a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8f307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8f306a
add dl, dl
jne 0x8f3089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8f30dc
xor eax, eax
add dl, dl
jne 0x8f3096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8f317d
add dl, dl
jne 0x8f30a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8f30b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8f30bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8f30c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8f30d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8f3075
mov eax, 1
add dl, dl
jne 0x8f30ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8f30f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8f30e1
sub eax, ebx
mov ebx, 1
jne 0x8f3128
mov ecx, 1
add dl, dl
jne 0x8f310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8f3119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8f3105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8f3075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8f313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8f314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8f3136
cmp eax, 0x7d00
jae 0x8f316d
cmp eax, 0x500
jb 0x8f3168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8f3075
cmp eax, 0x7f
ja 0x8f3170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8f3075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8f319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8f3075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10005e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x1001d994], 0
jne 0x1000610a
push esi
push str.0:db0:lk0:hs0:ld0:ll0:hb0:pj9_.01.3202:zb0.1:bb
mov byte [0x1001d994], 1
call fcn.1000765f
push 0x12a0
push 0
push 0x1001c6e0
call fcn.1000c8f0
push 0
push 0x1001c6fe
push 0x100175cc
call fcn.10005d60
push 0
push 0x1001c8fc
push 0x100175d4
call fcn.10005d60
push 0x1001c938
push 0
push 0x100175dc
call fcn.10005d60
push 0
push 0x1001c93c
push 0x100175e4
call fcn.10005d60
add esp, 0x40
push 0
push 0x1001cb3a
push 0x100175ec
call fcn.10005d60
push 0x1001cb78
push 0
push 0x100175f4
call fcn.10005d60
push 0
push 0x1001cb7c
push 0x100175fc
call fcn.10005d60
push 0
push 0x1001cd7a
push 0x10017604
call fcn.10005d60
push 0x1001cdb8
push 0
push 0x1001760c
call fcn.10005d60
push 0
push 0x1001cdbc
push 0x10017614
call fcn.10005d60
add esp, 0x48
push 0
push 0x1001cdf8
push 0x1001761c
call fcn.10005d60
push 0
push 0x1001ce34
push 0x10017624
call fcn.10005d60
push 0
push 0x1001ce98
push 0x1001762c
call fcn.10005d60
push 0
push 0x1001cefc
push 0x10017634
call fcn.10005d60
push 0x1001cf60
push 0
push 0x1001763c
call fcn.10005d60
push 0x1001cf64
push 0
push 0x10017644
call fcn.10005d60
add esp, 0x48
push 0x1001cf68
push 0
push 0x1001764c
call fcn.10005d60
push 0x1001cf6c
push 0
push 0x10017654
call fcn.10005d60
push 0x1001cf70
push 0
push 0x1001765c
call fcn.10005d60
push 0x1001cf74
push 0
push 0x10017664
call fcn.10005d60
push 0x1001cf78
push 0
push 0x1001766c
call fcn.10005d60
push 0x1001cf7c
push 0
push 0x10017674
call fcn.10005d60
add esp, 0x48
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.Console
push connect
mov dword [ebp - 8], 3
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10006032
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
push str.IpDate
push eax
call esi
cmp dword [ebp - 4], 0xa
jbe 0x10006109
push 0x7d0
push 0
push str.0:db0:lk0:hs0:ld0:ll0:hb0:pj9_.01.3202:zb0.1:bb
call fcn.1000c8f0
mov eax, dword [ebp - 0xc]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push str.0:db0:lk0:hs0:ld0:ll0:hb0:pj9_.01.3202:zb0.1:bb
lea edx, [ebp - 8]
push edx
push 0
push str.IpDate
push eax
call esi
push 0
push 0x1001c6fe
push 0x100175cc
call fcn.10005d60
push 0
push 0x1001c8fc
push 0x100175d4
call fcn.10005d60
push 0x1001c938
push 0
push 0x100175dc
call fcn.10005d60
push 0
push 0x1001c93c
push 0x100175e4
call fcn.10005d60
push 0
push 0x1001cb3a
push 0x100175ec
call fcn.10005d60
push 0x1001cb78
push 0
push 0x100175f4
call fcn.10005d60
add esp, 0x48
push 0
push 0x1001cb7c
push 0x100175fc
call fcn.10005d60
push 0
push 0x1001cd7a
push 0x10017604
call fcn.10005d60
push 0x1001cdb8
push 0
push 0x1001760c
call fcn.10005d60
add esp, 0x24
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10006380
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
jne 0x100063d2
cmp dword [0x1001d980], eax
jne 0x100063d2
push str.0:db0:lk0:hs0:ld0:ll0:hb0:pj9_.01.3202:zb0.1:bb
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x1e
jle 0x100063d2
call fcn.10005e30
cmp dword [0x1001cf70], 0
je 0x100063d2
push 0
push 0
push 0
push 0x10006110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1001d980], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
pop ebp
ret 0xc

Function at 0x100063e0
Capabilities:
Create thread

Disassembly:
cmp dword [0x1001d980], 0
jne 0x1000641d
call fcn.10005e30
push 0
push 0
push 0
push 0x10006110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1001d980], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x1001d980]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret

Function at 0x10006420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1001d980], 0
jne 0x10006480
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push str.0:db0:lk0:hs0:ld0:ll0:hb0:pj9_.01.3202:zb0.1:bb
call fcn.1000c970
add esp, 0xc
call fcn.10005e30
push 0
push 0
push 0
push 0x10006110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1001d980], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x1001d980]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret

Function at 0x10006490
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x10006110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1001d980], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
ret

Function at 0x100068f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100191b0]
jne 0x100068ff
repz ret
jmp fcn.10007962
Function at 0x1009c4a9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1009c4e8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1009c4e8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1009c4e8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1009c4e8
cmp dword [ecx + 0x74], 0xe
jbe 0x1009c4e8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1009d2c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1009d2ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1009d2ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1009d610
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a7608
push 0x100a7600
push str.FlsAlloc
push 0x1f
call fcn.1009d8f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009d644
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1009d64a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1009d68e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a7618
push 0x100a7610
push str.FlsGetValue
push 0x21
call fcn.1009d8f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009d6c5
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1009d6cd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a7620
push 0x100a7618
push str.FlsSetValue
push 0x22
call fcn.1009d8f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009d707
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100a09b0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100a0a4d
push ebx
push esi
call fcn.100a0a50
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100a08b4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100a09fa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a0a4c
push edi
push eax
call fcn.100a0a87
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100a0a1a
call fcn.1009ebc0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a0a4b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100a08b4
add esp, 0x20
test eax, eax
jne 0x100a0a39
push edi
call fcn.1009ebc0
jmp 0x100a0a41
push ebx
call fcn.1009ebc0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x404cb4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
cmp dword [ebp + 0xc], 1
sbb eax, eax
inc eax
and eax, 0x7f
push eax
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
pop ebp
ret 0xc

Function at 0x404cdc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
cmp dword [ebp + 0xc], 1
sbb eax, eax
inc eax
and eax, 0x7f
push eax
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
pop ebp
ret 0xc

Function at 0x404d04
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
cmp dword [ebp + 0xc], 1
sbb eax, eax
inc eax
and eax, 0x7f
push eax
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
pop ebp
ret 0xc

Function at 0x405d3c
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
call sub.KERNEL32.DLL_TerminateThread
add ebx, eax
jmp 0x405d4d
call fcn.00405d0c
call sub.KERNEL32.DLL_TerminateThread
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
cmp edx, dword [esp + 4]
jne 0x405d68
cmp eax, dword [esp]
pop edx
pop eax
ja 0x405d48
pop ebx
ret
pop edx
pop eax
jg 0x405d48
pop ebx
ret

Function at 0x406a68
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x406b04
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.0040401c
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00403f44
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x406a90
cmp byte [esp], 0
je 0x406ad5
mov eax, edi
call fcn.00403f44
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x406b10
mov eax, edi
call fcn.00403f44
push eax
mov eax, edi
call fcn.00403f44
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004026a4
mov edx, ebx
mov eax, edi
call fcn.0040401c
jmp 0x406b10
mov eax, edi
mov edx, 0x406b20
call fcn.00403bc4
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406ea8
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40706e
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, 0xc0000000
je 0x406f11
lea edx, [ebp - 0xc]
mov eax, 0x407084
call fcn.004070f0
mov eax, dword [ebp - 0xc]
call fcn.00403eec
push eax
lea edx, [ebp - 0x10]
mov eax, 0x4070a4
call fcn.004070f0
mov eax, dword [ebp - 0x10]
call fcn.00403eec
push eax
call sub.KERNEL32.DLL_ReleaseMutex
push eax
call sub.KERNEL32.DLL_SetEvent
test eax, eax
je 0x406f11
push ebx
call eax
mov ebx, eax
mov edi, 0x1300
cmp ebx, 0x834
jb 0x406f56
cmp ebx, 0xbb7
ja 0x406f56
push 2
push 0
lea edx, [ebp - 0x14]
mov eax, 0x4070b8
call fcn.004070f0
mov eax, dword [ebp - 0x14]
call fcn.00403eec
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x406f5b
or edi, 0x800
jmp 0x406f5b
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x40704c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0x400
push ebx
mov eax, dword [ebp - 8]
push eax
push edi
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
je 0x406ff9
xor edx, edx
push ebp
push 0x406ff2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403ca0
mov eax, dword [esi]
call fcn.00403cf4
mov ebx, eax
test ebx, ebx
jbe 0x406fdb
mov eax, dword [esi]
mov al, byte [eax + ebx - 1]
cmp al, 0xd
jne 0x406fc2
mov eax, esi
call fcn.00403f44
mov byte [eax + ebx - 1], 0x20
jmp 0x406fd6
mov edx, dword [esi]
cmp al, 0xa
jne 0x406fd6
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.00403f8c
dec ebx
test ebx, ebx
ja 0x406faa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40702f
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_lstrcpyA
ret
lea edx, [ebp - 0x18]
mov eax, 0x4070cc
call fcn.004070f0
push dword [ebp - 0x18]
push 0x4070ec
lea eax, [ebp - 0x1c]
push eax
mov cl, 0x30
mov edx, 1
mov eax, ebx
call fcn.00406dfc
push dword [ebp - 0x1c]
mov eax, esi
mov edx, 3
call fcn.00403db4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407053
cmp dword [ebp - 8], 0
je 0x40704b
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
ret

Function at 0x4070f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403edc
xor eax, eax
push ebp
push 0x407152
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00403bc4
mov eax, ebx
call fcn.00403f3c
mov eax, dword [ebx]
call fcn.00403cf4
test eax, eax
jle 0x40713c
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x407131
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407159
lea eax, [ebp - 4]
call fcn.00403b70
ret
Function at 0x4073f8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
xor edx, edx
push ebp
push 0x407430
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [eax], 0x5a4d
jne 0x407426
lea edx, [eax + 0x3c]
mov ebx, dword [edx]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x407426
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40743c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x409f40
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x409fc4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x419874], 0
jne 0x409fa3
lea edx, [ebp - 4]
mov eax, 0x409fdc
call fcn.004070f0
call sub.KERNEL32.DLL_UnmapViewOfFile
test eax, 0x80000000
jne 0x409f95
lea ecx, [ebp - 8]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00407160
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov dword [0x419874], eax
jmp 0x409fa3
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ReleaseMutex
mov dword [0x419874], eax
mov ebx, dword [0x419874]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409fcb
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b94
ret

Function at 0x40a058
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x40a0c0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x419878], 0
jne 0x40a09f
lea edx, [ebp - 8]
mov eax, 0x40a0d8
call fcn.004070f0
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov dl, 1
call fcn.00407160
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov dword [0x419878], eax
mov ebx, dword [0x419878]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a0c7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b94
ret

Function at 0x40a16c
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.KERNEL32.DLL_GetModuleFileNameA
cmp eax, 0x1c
jne 0x40a1e8
cmp dword [esp + 0x10], 0x1000
jne 0x40a1e8
cmp dword [esp + 4], 0
je 0x40a1e8
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.DLL_OpenProcess
test eax, eax
je 0x40a1e8
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x40a1e8
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x40a1e8
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40adc8
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push ecx
mov esi, eax
xor eax, eax
mov dword [esp], eax
call sub.KERNEL32.DLL_UnmapViewOfFile
test eax, 0x80000000
jne 0x40ade7
call fcn.0040ace4
mov ebx, eax
jmp 0x40adee
call fcn.0040abe0
mov ebx, eax
test ebx, ebx
je 0x40ae10
push 2
push 0
push 0
lea eax, [esp + 0xc]
push eax
push ebx
push esi
call sub.KERNEL32.DLL_LoadLibraryW
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryW
push ebx
call sub.KERNEL32.DLL_FormatMessageA
mov eax, dword [esp]
pop edx
pop esi
pop ebx
ret