joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401500
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x24], 0
mov ecx, 0x4016f0
sub ecx, 0x4016c0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x1c]
add edx, 0x20f
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
je 0x401573
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.004022b0
add esp, 0xc
push 0x40
push 0x101000
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x401598
jmp 0x4016b7
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 0x423a30
call fcn.00402230
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x4015c7
mov ecx, 0x4016e0
sub ecx, 0x4016c0
mov edx, dword [ebp - 0x24]
lea eax, [edx + ecx*4]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push str.pdwCodeRemote:__08x____08x_n
call fcn.00402230
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x40
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x4015fd
jmp 0x4016b5
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0x4016c0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401621
jmp 0x4016b3
mov edx, dword [ebp - 0x1c]
add edx, 4
and edx, 0xfffffffc
mov eax, dword [ebp - 0x24]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0xc]
push edx
push 0x20c
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401657
jmp 0x4016b1
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x10000
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401681
jmp 0x4016af
cmp dword [ebp + 0x10], 0
je 0x401693
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], 1
cmp dword [ebp - 8], 0
je 0x4016aa
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
jmp 0x4016b9
jmp 0x40169a
jmp 0x40169a
jmp 0x40169a
jmp 0x40169a
jmp 0x40169a
mov esp, ebp
pop ebp
ret
Function at 0x401790
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x1c]
or al, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x34], 0
jne 0x4017ad
mov ecx, dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp + 0x34], ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp + 0x34]
test eax, eax
jne 0x4017e0
xor eax, eax
jmp 0x401858
cmp dword [ebp + 0x30], 0
je 0x4017fa
mov eax, dword [ebp + 0x30]
push eax
call fcn.004021b0
add esp, 4
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x401801
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x30]
push edx
call fcn.00401700
push eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00401860
add esp, 0x14
test eax, eax
jne 0x401827
xor eax, eax
jmp 0x401858
cmp dword [ebp + 0x2c], 0
je 0x40183f
push 0x10
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x2c]
push eax
call fcn.004022b0
add esp, 0xc
mov ecx, dword [ebp + 0x1c]
and ecx, 4
test ecx, ecx
jne 0x401853
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x30
Function at 0x102293d0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x102295bd
pushal
mov esi, section..data
lea edi, [esi - 0xc1000]
push edi
or ebp, 0xffffffff
jmp 0x102293fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10229401
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x102293f0
mov eax, 1
add ebx, ebx
jne 0x10229413
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10229424
jne 0x10229443
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10229443
dec eax
add ebx, ebx
jne 0x10229430
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10229408
add ebx, ebx
jne 0x1022943f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10229495
xor ecx, ecx
sub eax, 3
jb 0x1022945b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x102294ca
sar eax, 1
mov ebp, eax
jmp 0x10229466
add ebx, ebx
jne 0x10229466
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10229434
inc ecx
add ebx, ebx
jne 0x10229474
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10229434
add ebx, ebx
jne 0x10229481
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10229476
jne 0x10229492
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10229476
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x102294b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x102294a6
jmp 0x102293f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x102294b4
add edi, ecx
jmp 0x102293f6
pop esi
mov edi, esi
mov ecx, 0x4329
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x102294d2
cmp byte [edi], 0x12
jne 0x102294d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x102294d7
lea edi, [esi + 0x222000]
mov eax, dword [edi]
or eax, eax
je 0x1022954f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x229324]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22943c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10229504
mov ecx, edi
jns 0x10229533
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x229440]
or eax, eax
je 0x10229549
mov dword [ebx], eax
add ebx, 4
jmp 0x10229521
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10229580
cmp al, 0xef
ja 0x10229573
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10229555
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10229562
mov ebp, dword [esi + 0x229444]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x102295b4
sub esp, 0xffffff80
jmp 0x10061afd
Function at 0x1002eda
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1005050
call fcn.01003064
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, 0x1006448
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002cef
cmp eax, esi
jne 0x1002ce2
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002cf2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002cc9
xor esi, esi
inc esi
mov eax, dword [0x1006444]
cmp eax, esi
jne 0x1002d05
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002d40
mov eax, dword [0x1006444]
test eax, eax
jne 0x1002d3a
mov dword [0x1006444], esi
push 0x10011a0
push 0x1001194
call fcn.01002c46
pop ecx
pop ecx
test eax, eax
je 0x1002d40
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002e0a
mov dword [0x10060bc], esi
mov eax, dword [0x1006444]
cmp eax, esi
jne 0x1002d64
push 0x1001190
push 0x1001184
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1006444], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002d71
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100644c], ebx
je 0x1002d92
push 0x100644c
call fcn.01002fd9
pop ecx
test eax, eax
je 0x1002d92
push ebx
push 2
push ebx
call dword [0x100644c]
push dword [0x10060a4]
push dword [0x10060a8]
push dword [0x10060a0]
call fcn.01002a8b
add esp, 0xc
mov dword [0x10060b8], eax
cmp dword [0x10060ac], ebx
jne 0x1002df0
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 [0x10060bc], ebx
jne 0x1002dfe
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10060b8]
call fcn.010030a9
ret
call fcn.01003257
jmp 0x1002ca7

Function at 0x100349b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push 0x10018f8
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10034ef
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x10018d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], 1
pop esi
sete al
leave
ret
Function at 0x10043ac
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100603c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp esi, ebx
je 0x1004540
xor eax, eax
cmp ax, word [esi]
je 0x1004540
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.010041aa
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1004529
push edi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0100418c
cmp eax, ebx
jl 0x10044bd
cmp dword [ebp - 0x1c], 1
jne 0x1004488
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1004422
mov ecx, dword [ebp - 0x14]
sub eax, edx
sar eax, 1
lea esi, [ecx + eax*2]
cmp dword [ebp - 0xc], ebx
je 0x100444c
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
mov esi, eax
pop ecx
push dword [ebp - 8]
cmp esi, ebx
je 0x10044fd
xor eax, eax
mov word [esi], ax
call fcn.01004a47
test eax, eax
jne 0x100447e
push ebx
push dword [ebp - 8]
call edi
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
jmp 0x1004452
mov esi, dword [ebp - 0x14]
movzx eax, word [esi]
cmp ax, 0x61
jb 0x100449a
cmp ax, 0x7a
jbe 0x10044a6
cmp ax, 0x41
jb 0x100444c
cmp ax, 0x5a
ja 0x100444c
push 0x3a
pop eax
cmp ax, word [esi + 2]
jne 0x100444c
push 0x5c
pop eax
cmp ax, word [esi + 4]
jne 0x100444c
add esi, 8
jmp 0x100444c
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1001da0
push 0x3000000
push 0x1006434
mov dword [ebp - 0x10], eax
call fcn.01003ee6
add esp, 0x14
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
jmp 0x1004532
call fcn.01004a47
xor esi, esi
inc esi
cmp eax, esi
je 0x1004524
push ebx
push dword [ebp - 8]
call edi
cmp eax, esi
je 0x1004524
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x20]
push 0x1001d40
jmp 0x10044d4
mov dword [ebp - 0x18], esi
jmp 0x10044e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x18]
jmp 0x100454a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.010032ed
leave
ret 4
Function at 0x1004a47
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp eax, esi
je 0x1004ab8
xor ecx, ecx
cmp cx, word [eax]
je 0x1004ab8
push edi
push esi
push eax
call fcn.010041aa
mov edi, eax
cmp edi, esi
je 0x1004ab3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1004a81
test al, 0x10
je 0x1004a81
inc ebx
jmp 0x1004a9c
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x1004a94
mov esi, 0x10b
cmp esi, 2
jne 0x1004a9c
push 3
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
pop edi
jmp 0x1004ac2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1004acd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x1004aef
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
leave
ret 0xc
push esi
cmp dword [ebp + 0xc], edi
je 0x1004b20
lea ecx, [ebp - 4]
push ecx
push 0x20019
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004b12
cmp dword [ebp - 4], edi
jne 0x1004b23
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
jmp 0x1004aea
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], edi
je 0x1004b41
push edi
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x1004b44
xor esi, esi
inc esi
cmp dword [ebp + 0xc], edi
je 0x1004b14
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004b14
Function at 0x1004b59
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 4
cmp ebx, esi
jne 0x1004b86
mov eax, 0x80070057
jmp 0x1004c17
push edi
push dword [ebp + 8]
lea eax, [ebp - 8]
push 0x10024b0
push eax
call fcn.01004a2c
mov edi, eax
add esp, 0xc
cmp edi, esi
jl 0x1004bf0
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp - 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1004bd9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x10024a4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x1004be7
jle 0x1004be5
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, esi
jl 0x1004bf0
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
cmp dword [ebp - 4], esi
je 0x1004bfe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x1004c14
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40596f
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405c3a
test bl, 8
mov dword [ebp - 8], eax
je 0x4059ae
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2c8], eax
jmp 0x405b2b
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4059c8
test eax, eax
je 0x405ad9
test bl, 2
je 0x405ad9
mov esi, 0x425730
push edi
push esi
call fcn.0040617e
cmp dword [ebp + 8], 0
je 0x4059e7
push 0x40a574
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x4059ed
push edi
call fcn.00405b7e
cmp word [edi], 0
jne 0x4059fd
cmp word [0x425730], 0x5c
jne 0x405a08
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ace
cmp word [ebp - 0x22c], 0x2e
jne 0x405a52
cmp word [ebp - 0x22a], 0
je 0x405ab1
cmp word [ebp - 0x22a], 0x2e
jne 0x405a52
cmp word [ebp - 0x228], 0
je 0x405ab1
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040617e
test byte [ebp - 0x258], 0x10
je 0x405a7d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405ab1
push dword [ebp + 0xc]
push edi
call fcn.0040596f
jmp 0x405ab1
push dword [ebp - 4]
push edi
call fcn.00405927
test eax, eax
jne 0x405aa9
cmp dword [ebp - 4], eax
je 0x405aa1
push edi
push 0xfffffffffffffff1
call fcn.004052dd
push 0
push edi
call fcn.0040601f
jmp 0x405ab1
inc dword [0x42a2c8]
jmp 0x405ab1
push edi
push 0xfffffffffffffff2
call fcn.004052dd
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405a2a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405ad9
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405b2b
cmp dword [ebp - 8], esi
jne 0x405aed
inc dword [0x42a2c8]
jmp 0x405b2b
push edi
call fcn.004064c1
test eax, eax
je 0x405b2b
push edi
call fcn.00405b32
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405927
test eax, eax
jne 0x405b23
cmp dword [ebp - 4], esi
je 0x405ae5
push edi
push 0xfffffffffffffff1
call fcn.004052dd
push esi
push edi
call fcn.0040601f
jmp 0x405b2b
push edi
push 0xffffffffffffffe5
call fcn.004052dd
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1001cd7a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001cdb9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001cdb9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001cdb9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001cdb9
cmp dword [ecx + 0x74], 0xe
jbe 0x1001cdb9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001f745
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 0x1001f7e2
push ebx
push esi
call fcn.1001f70e
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.1001f6a2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001f78f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001f7e1
push edi
push eax
call fcn.1001e043
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001f7af
call fcn.1001e091
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001f7e0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001f6a2
add esp, 0x20
test eax, eax
jne 0x1001f7ce
push edi
call fcn.1001e091
jmp 0x1001f7d6
push ebx
call fcn.1001e091
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 0x1001fa4f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028640
push 0x10028638
push str.FlsAlloc
push 0x1f
call fcn.1001f96b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001fa83
push dword [ebp + 8]
mov ecx, esi
call dword [0x10026154]
call esi
jmp 0x1001fa89
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001facd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028650
push 0x10028648
push str.FlsGetValue
push 0x21
call fcn.1001f96b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001fb04
push dword [ebp + 8]
mov ecx, esi
call dword [0x10026154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001fb0c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028658
push 0x10028650
push str.FlsSetValue
push 0x22
call fcn.1001f96b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001fb46
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10026154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10025050
Capabilities:
Parse pe header

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