joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401059
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401070
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4010a5
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4010a1
cmp edi, eax
jae 0x4010a5
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401093
cmp edi, eax
jb 0x4010a9
xor eax, eax
jmp 0x4010b2
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4011b9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4149f8]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00409060
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x401200
xor al, al
jmp 0x401220
cmp dword [ebp - 0x7c], 5
jb 0x4011fc
jbe 0x40120c
mov al, 1
jmp 0x401220
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x401220
cmp word [ebp + 0x94], 4
sbb al, al
inc al
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00408dd1
add ebp, 0xa0
leave
ret

Function at 0x401878
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
push edi
lea ebx, [esi + 0x20]
mov eax, ebx
lea edi, [ebp - 0xc]
call fcn.004021b5
push dword [eax + 4]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, edi
call fcn.004021d3
mov eax, dword [ebx]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4018c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4018f5
add esi, 0x1c
mov eax, esi
lea edi, [ebp - 0xc]
call fcn.004021b5
mov eax, dword [eax + 4]
mov ebx, dword [ebx]
push eax
push 0
push 0x412cdc
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
neg ebx
sbb bl, bl
mov ecx, edi
inc bl
call fcn.004021d3
test bl, bl
je 0x4018fa
or eax, 0xffffffff
jmp 0x40190e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401913
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4149f8]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x214], 0xffffffff
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor edi, edi
lea eax, [ebp - 0x20e]
push edi
push eax
mov esi, ecx
call fcn.00409060
mov eax, dword [esi + 0x20]
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push edi
push 0x412ce4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401a50
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
call fcn.00401fd8
add esi, 0x10
lea ebx, [ebp - 0x21c]
call fcn.0040210a
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.004010b5
push 0x412c50
push 0x66
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x401a50
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x401a50
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x401a50
push edi
push edi
push 4
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp eax, 0xffffffff
je 0x401a50
push dword [ebp - 0x214]
xor eax, eax
lea edi, [ebp - 0x220]
push esi
stosd dword es:[edi], eax
xor esi, esi
push esi
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ecx, ebx
call fcn.00401cbe
pop ecx
pop ecx
test eax, eax
jne 0x401a3d
push esi
push esi
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401a50
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x214], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408dd1
leave
ret
Function at 0x401cbe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4149f8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xd
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x9c], eax
jb 0x401e76
xor ebx, ebx
lea eax, [ebp - 0x8c]
mov edx, edi
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x8c], 0x401ca8
mov dword [ebp - 0x88], 0x401cb3
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
call fcn.00404b0c
sub dword [ebp + 8], 0xd
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
add edi, 5
mov eax, dword [edi]
push eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x7c], eax
call fcn.0040cce7
mov esi, eax
pop ecx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 8]
push eax
add edi, 8
push edi
lea eax, [ebp - 0x7c]
push eax
push esi
lea edi, [ebp - 0x78]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], ebx
call fcn.004049c2
add esp, 0x14
push dword [ebp - 0x68]
mov edi, eax
lea eax, [ebp - 0x8c]
push eax
call dword [ebp - 0x88]
push dword [ebp - 0x64]
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x68], ebx
call dword [ebp - 0x88]
add esp, 0x10
mov dword [ebp - 0x64], ebx
cmp edi, ebx
je 0x401da7
or edi, 0xffffffff
push esi
call fcn.0040cd2b
pop ecx
mov eax, edi
jmp 0x401e79
mov ecx, dword [esi]
add esi, 4
mov edi, dword [esi]
push 4
pop eax
add esi, eax
mov ebx, dword [esi]
add esi, eax
mov edx, dword [esi]
add esi, eax
mov dword [ebp - 0x90], edx
mov edx, dword [esi]
push ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x94], edx
add esi, eax
call fcn.0040cce7
pop ecx
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
push eax
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
push eax
lea edx, [eax + ebx]
lea eax, [ebx + edi]
add eax, esi
push eax
push ebx
lea eax, [edi + esi]
push eax
add edx, edi
push edi
add edx, esi
push esi
call fcn.00404b79
add esp, 0x24
test eax, eax
je 0x401e20
push dword [ebp - 0x7c]
call fcn.0040cd2b
mov esi, dword [ebp - 0x84]
xor edi, edi
pop ecx
inc edi
jmp 0x401d99
mov esi, dword [ebp - 0x80]
push 0
lea eax, [ebp - 0x98]
push eax
push esi
push dword [ebp - 0x7c]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401e61
cmp dword [ebp - 0x98], esi
jne 0x401e61
push dword [ebp - 0x7c]
call fcn.0040cd2b
pop ecx
push dword [ebp - 0x84]
call fcn.0040cd2b
pop ecx
xor eax, eax
jmp 0x401e79
push dword [ebp - 0x7c]
call fcn.0040cd2b
pop ecx
push dword [ebp - 0x84]
call fcn.0040cd2b
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408dd1
leave
ret
Function at 0x402811
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [eax]
push ebx
push esi
push edi
sub eax, 0x10
call fcn.0040251e
mov esi, eax
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
add esi, 0x10
push eax
mov dword [ebp - 8], esi
call fcn.00409060
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x402872
push dword [esi - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.004025ce
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4028aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [esi - 0x10]
call fcn.004010b5
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 1], 1
cmp dword [ebp + 8], ebx
je 0x4028d0
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne byte [ebp - 1]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
mov bl, byte [ebp - 1]
jmp 0x40289b

Function at 0x402911
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, eax
call fcn.004029aa
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4029a2
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
cmp eax, edi
je 0x40299d
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
cmp edx, edi
je 0x402994
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402994
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov al, 1
jmp 0x4029a4
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004029aa
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x402a02
Capabilities:
Parse pe header

Disassembly:
test ecx, ecx
jne 0x402a09
xor al, al
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402a06
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402a06
mov eax, dword [eax + 0x98]
test eax, eax
je 0x402a2f
lea edx, [eax + ecx]
jmp 0x402a31
xor edx, edx
test edx, edx
je 0x402a06
lea eax, [edx + 8]
test eax, eax
je 0x402a06
cmp byte [eax], 0x30
lea ecx, [eax + 1]
jne 0x402a60
mov al, byte [ecx]
inc ecx
cmp al, 0x82
jne 0x402a60
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
lea eax, [eax + ecx + 0x13]
and eax, 0xffffff8
jmp 0x402a62
xor eax, eax
test eax, eax
je 0x402a06
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov al, 1
ret

Function at 0x402e79
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, edi
jne 0x402e9f
xor eax, eax
jmp 0x402f49
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
jne 0x402ec0
xor eax, eax
jmp 0x402f48
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x402f45
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
je 0x402f3c
push ebx
push esi
push eax
call fcn.00407c80
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x402f33
mov ebx, dword [ebp - 4]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [ebp - 0xc], edi
cmp esi, edi
je 0x402f2a
lea eax, [ebp - 0xc]
push eax
push ebx
mov dword [esi], 0x412df4
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x403100
Capabilities:
Delete file

Disassembly:
push esi
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x403123
test esi, esi
jl 0x403137
cmp esi, dword [edi + 0x10]
jge 0x403137
mov eax, dword [edi + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x10]
jne 0x403108
lea esi, [edi + 0xc]
call fcn.00402180
mov eax, dword [edi + 4]
sub eax, 0x10
pop esi
jmp fcn.004010b5
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x403149
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4022c
call fcn.0040c2e0
mov eax, dword [0x4149f8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x40220], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x40224]
push eax
mov esi, 0x200
push esi
lea eax, [ebp - 0x4020c]
push eax
push dword [edi]
mov byte [ebp - 0x4020d], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403250
cmp dword [ebp - 0x40224], esi
jne 0x403250
push 4
lea eax, [ebp - 0x4010b]
push 0x412c74
push eax
call fcn.0040a248
add esp, 0xc
test eax, eax
jne 0x4031cf
mov eax, dword [ebp - 0x40220]
mov byte [eax], 1
mov al, 1
jmp 0x403252
push 5
lea eax, [ebp - 0x4010b]
push 0x412c6c
push eax
call fcn.0040a248
add esp, 0xc
test eax, eax
jne 0x403250
mov eax, dword [edi + 4]
sub eax, 0x10
call fcn.0040251e
add eax, 0x10
mov dword [ebp - 0x40214], eax
push 0x412dfc
lea eax, [ebp - 0x40214]
push eax
call fcn.00403389
lea eax, [ebp - 0x4020c]
push eax
lea eax, [ebp - 0x40214]
push eax
call fcn.00403389
mov esi, dword [ebp - 0x40214]
push ebx
push 0x100
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40220], eax
cmp eax, 0xffffffff
jne 0x403262
lea eax, [esi - 0x10]
call fcn.004010b5
xor al, al
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408dd1
leave
ret 4
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.0040c67b
add esp, 0xc
push 1
push ebx
push ebx
push dword [edi]
mov esi, eax
mov dword [ebp - 0x40218], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add eax, dword [ebp - 0x40218]
neg esi
and esi, 0x1ff
add esi, eax
mov dword [ebp - 0x40228], esi
cmp dword [ebp - 0x40218], ebx
jbe 0x40331d
mov ecx, dword [ebp - 0x40218]
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp ecx, eax
jae 0x4032c1
mov dword [ebp - 0x4021c], ecx
push ebx
lea eax, [ebp - 0x40224]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403317
push ebx
lea eax, [ebp - 0x40224]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403317
mov eax, dword [ebp - 0x4021c]
sub dword [ebp - 0x40218], eax
jne 0x4032a6
jmp 0x40331d
mov byte [ebp - 0x4020d], bl
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x4020d], bl
je 0x403360
cmp byte [edi + 8], bl
je 0x40334c
lea esi, [edi + 0xc]
lea ebx, [ebp - 0x40214]
call fcn.0040210a
mov esi, dword [ebp - 0x40228]
xor ebx, ebx
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x403360
push dword [ebp - 0x40214]
push dword [edi + 0x1c]
call eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x403370
push ebx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x40214]
add eax, 0xfffffff0
call fcn.004010b5
mov al, byte [ebp - 0x4020d]
jmp 0x403252
Function at 0x406f63
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405e53
and dword [ebp - 4], 0
cmp dword [0x4155e0], 0
mov ebx, eax
jne 0x407014
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4070c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4070c5
push eax
call fcn.00405de1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4155e0], eax
call esi
push eax
call fcn.00405de1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4155e4], eax
call esi
push eax
call fcn.00405de1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4155e8], eax
call esi
push eax
call fcn.00405de1
pop ecx
mov dword [0x4155f0], eax
test eax, eax
je 0x407014
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405de1
pop ecx
mov dword [0x4155ec], eax
mov eax, dword [0x4155ec]
cmp eax, ebx
je 0x40706c
cmp dword [0x4155f0], ebx
je 0x40706c
push eax
call fcn.00405e5c
push dword [0x4155f0]
mov esi, eax
call fcn.00405e5c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40706c
test edi, edi
je 0x40706c
call esi
test eax, eax
je 0x407063
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407063
test byte [ebp - 0xc], 1
jne 0x40706c
or dword [ebp + 0x10], 0x200000
jmp 0x4070a5
mov eax, dword [0x4155e4]
cmp eax, ebx
je 0x4070a5
push eax
call fcn.00405e5c
pop ecx
test eax, eax
je 0x4070a5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4070a5
mov eax, dword [0x4155e8]
cmp eax, ebx
je 0x4070a5
push eax
call fcn.00405e5c
pop ecx
test eax, eax
je 0x4070a5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4155e0]
call fcn.00405e5c
pop ecx
test eax, eax
je 0x4070c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4070c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408dd1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4149f8]
jne 0x408ddb
repz ret
jmp fcn.0040bc75

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4105b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x50b58b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004ffc1c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x410632
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004fd497
mov eax, dword [eax]
push 0x912da4
push eax
call fcn.004dc244
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004ffea7
test bl, bl
je 0x410632
push 0x912da4
lea ecx, [esp + 0xc]
call fcn.00500237
push 0x912db0
lea ecx, [esp + 0xc]
call fcn.00500237
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41066e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004ffea7
jmp 0x410739
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4106f2
lea edx, [esp + 0x7c]
push 0x912dac
push edx
call fcn.004dc244
add esp, 8
test eax, eax
je 0x4106f2
lea eax, [esp + 0x7c]
push 0x912da8
push eax
call fcn.004dc244
add esp, 8
test eax, eax
je 0x4106f2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410682
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004ffea7
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x410f30
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x410f92
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x410fa0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x50b60b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x9375a8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4110d8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x411006
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004ffea7
xor eax, eax
jmp 0x41114f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004fffe4
push esi
lea ecx, [esp + 0xc]
call fcn.00500273
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41112d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00410f30
test eax, eax
jne 0x41112d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00410f30
test eax, eax
jne 0x41112d
lea eax, [esp + 0x14]
push 0x912dc0
push eax
call fcn.004dd350
mov esi, eax
add esp, 8
test esi, esi
jne 0x41110c
lea ecx, [esp + 0x14]
push 0x912dbc
push ecx
call fcn.004dd2d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41110c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41110f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004fff94
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41101e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004ffea7
xor eax, eax
jmp 0x41114f
mov byte [esi], 0
push 0x912db8
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004ffea7
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4