joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401433
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xc
mov dword [ebp - 0x884], ecx
lea edi, [ebp - 0x6c]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
and dword [ebp - 0x874], 0
rep movsd dword es:[edi], dword [esi]
push 0xc
pop ecx
push str.IsWow64Process
movsb byte es:[edi], byte [esi]
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
push str.kernel32
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4014a0
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov edi, dword [ebp - 0x874]
lea eax, [ebp - 0x87c]
neg edi
push eax
sbb edi, edi
lea eax, [ebp - 0x6c]
and edi, 0x100
or edi, 0x20019
push edi
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4015a3
mov esi, 0x800
mov dword [ebp - 0x878], 7
push esi
lea eax, [ebp - 0x86c]
push 0
push eax
call fcn.00404300
add esp, 0xc
mov dword [ebp - 0x870], esi
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x878]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x87c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x87c]
mov esi, eax
call ebx
test esi, esi
jne 0x4015a3
mov eax, dword [ebp - 0x870]
lea esi, [ebp - 0x86c]
shr eax, 1
mov dword [ebp - 0x888], eax
mov dword [ebp - 0x870], eax
mov dword [ebp - 0x880], 0
je 0x4015a3
push dword [ebp - 0x884]
push esi
call fcn.00403e81
pop ecx
pop ecx
test eax, eax
jne 0x4015df
push esi
call fcn.00404b50
mov ecx, dword [ebp - 0x880]
inc ecx
add ecx, eax
push esi
mov dword [ebp - 0x880], ecx
call fcn.00404b50
pop ecx
pop ecx
lea esi, [esi + eax*2]
mov eax, dword [ebp - 0x880]
add esi, 2
cmp eax, dword [ebp - 0x888]
jb 0x401560
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x870]
push eax
push edi
push 0
lea eax, [ebp - 0x38]
push eax
push 0x80000002
call esi
test eax, eax
jne 0x4015e6
mov edx, dword [ebp - 0x884]
mov ecx, dword [ebp - 0x870]
call fcn.004012b0
push dword [ebp - 0x870]
test eax, eax
je 0x4015e4
call ebx
xor eax, eax
inc eax
jmp 0x40161e
call ebx
lea eax, [ebp - 0x870]
push eax
push edi
push 0
lea eax, [ebp - 0x38]
push eax
push 0x80000001
call esi
test eax, eax
jne 0x40161c
mov edx, dword [ebp - 0x884]
mov ecx, dword [ebp - 0x870]
call fcn.004012b0
push dword [ebp - 0x870]
test eax, eax
jne 0x4015dd
call ebx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004032a6
mov esp, ebp
pop ebp
ret
Function at 0x40162f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push ecx
push ecx
mov word [edi], ax
call fcn.00404b50
pop ecx
inc eax
push eax
push edi
call fcn.00404a77
add esp, 0xc
test eax, eax
je 0x401666
xor eax, eax
jmp 0x40180a
push ebx
push edi
call fcn.00404b50
pop ecx
mov ebx, eax
push 0x5c
pop eax
cmp word [edi + ebx*2 - 2], ax
je 0x401685
mov word [edi + ebx*2], ax
inc ebx
xor eax, eax
mov word [edi + ebx*2], ax
push esi
push str.LMIR
push edi
call fcn.00404b50
mov esi, eax
mov dword [esp], str.LMIR
call fcn.00404b50
inc eax
pop ecx
add eax, esi
push eax
push edi
call fcn.00404adb
add esp, 0xc
test eax, eax
jne 0x401806
push str.LMIR
call fcn.00404b50
pop ecx
push 4
pop ecx
cmp eax, ecx
ja 0x4016c9
mov ecx, eax
lea eax, [ebp - 0x14]
add ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xc]
lea edx, [edi + ebx*2]
imul ecx, eax, 0x3c
movzx eax, word [ebp - 0xa]
push 2
pop esi
push 0x2e
add ecx, eax
movzx eax, word [ebp - 8]
imul ecx, ecx, 0x3c
add ecx, eax
mov eax, ecx
shr eax, 0x10
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
mov eax, ecx
shr eax, 8
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
mov eax, ecx
and ecx, 0xf
shr eax, 4
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
mov ax, word [ecx*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
xor eax, eax
mov word [edx], ax
add edx, esi
mov word [edx], ax
add edx, esi
mov word [edx], ax
add edx, esi
pop eax
push 0x74
mov word [edx], ax
add edx, esi
pop eax
push 0x6d
mov word [edx], ax
add edx, esi
pop eax
push 0x70
mov word [edx], ax
pop eax
mov word [edx + esi], ax
xor eax, eax
mov word [edx + esi + 2], ax
xor esi, esi
inc esi
mov eax, esi
shr eax, 8
and eax, 0xf
push str.LMIR
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edi + ebx*2 + 0xa], ax
mov eax, esi
shr eax, 4
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edi + ebx*2 + 0xc], ax
mov eax, esi
and eax, 0xf
inc esi
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edi + ebx*2 + 0xe], ax
call fcn.00404b50
pop ecx
mov ecx, ebx
sub ecx, eax
lea ecx, [edi + ecx*2]
call fcn.00401433
test eax, eax
jne 0x4017fe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401819
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401806
cmp esi, 0xfff
jb 0x40178d
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004032a6
mov esp, ebp
pop ebp
ret
xor eax, eax
inc eax
jmp 0x401808
Function at 0x40181e
Capabilities:
Create directory

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push str.SHGetSpecialFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401842
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x4018cb
push 0
push 0x1c
push ebx
push 0
call eax
test eax, eax
je 0x401834
push esi
push 0x41a7ac
push ebx
call fcn.00404b50
mov dword [esp], str.tU_S_
lea esi, [eax + 1]
call fcn.00404b50
pop ecx
add eax, esi
push eax
push ebx
call fcn.00404adb
add esp, 0xc
push str.Applet
push ebx
call fcn.00404b50
mov dword [esp], str.Applet
lea esi, [eax + 1]
call fcn.00404b50
pop ecx
add eax, esi
push eax
push ebx
call fcn.00404adb
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
test eax, eax
jne 0x4018bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401834
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call fcn.00404b50
pop ecx
pop edi
pop ebx
ret

Function at 0x4018ce
Capabilities:
Set current directory

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
xor eax, eax
push str.shell32.dll
mov word [edi], ax
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x401933
mov edx, eax
mov ecx, edi
call fcn.0040181e
test eax, eax
je 0x401933
cmp eax, 0x103
ja 0x401933
push esi
mov ecx, edi
call fcn.0040162f
pop ecx
test eax, eax
jne 0x401912
push 2
pop eax
jmp 0x401936
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x40192f
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.004011fb
pop ecx
push 3
jmp 0x40190f
xor eax, eax
jmp 0x401936
xor eax, eax
inc eax
pop edi
pop esi
pop ecx
ret
Function at 0x401ddf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20
pop eax
mov esi, edx
mov word [ebp - 0x418], ax
xor ebx, ebx
xor eax, eax
push ebx
push 0x80
cmp word [esi], bx
setne al
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0x40000000
push str.params.txt
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401ee1
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.00404b50
mov ebx, eax
pop ecx
test ebx, ebx
je 0x401eda
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00404300
and dword [ebp - 0x420], 0
lea eax, [ebp - 0x414]
push ebx
push esi
push 0x410
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004076c9
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x41c]
add esp, 0x20
xor ebx, ebx
push ebx
push eax
push 1
lea eax, [ebp - 0x418]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004072f0
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x41c]
push eax
push 1
lea eax, [ebp - 0x418]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004032a6
mov esp, ebp
pop ebp
ret

Function at 0x401ef2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
xor edi, edi
mov esi, str.logo.bmp
test ecx, ecx
je 0x401f13
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401f13
xor eax, eax
inc eax
jmp 0x401fa0
push 0xa
push 0x2711
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [0x41d2c0], eax
test eax, eax
je 0x401f31
call fcn.00401aca
jmp 0x401f33
mov eax, edi
test eax, eax
je 0x401fa0
mov ecx, dword [0x41d2cc]
mov eax, dword [0x41d2c8]
cmp ecx, 0x36
jb 0x401f8a
mov edx, 0x4d42
cmp word [eax], dx
jne 0x401f8a
cmp dword [eax + 2], ecx
jne 0x401f8a
cmp dword [eax + 0xe], 0x28
je 0x401f68
cmp dword [eax + 0xe], 0x6c
je 0x401f68
cmp dword [eax + 0xe], 0x7c
jne 0x401f8a
cmp dword [eax + 0x12], 0x4e
jne 0x401f8a
cmp dword [eax + 0x16], 0x20
je 0x401f7a
cmp dword [eax + 0x16], 0xffffffe0
jne 0x401f8a
push 1
push edi
mov edx, esi
xor ecx, ecx
call fcn.00401b3b
pop ecx
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00401b0e
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x401fa3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
xor edi, edi
mov esi, str.rescue.ico
test ecx, ecx
je 0x401fc1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401fc1
xor eax, eax
inc eax
jmp 0x40200b
push 0xa
push 0x2716
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [0x41d2c0], eax
test eax, eax
je 0x401fdf
call fcn.00401aca
jmp 0x401fe1
mov eax, edi
test eax, eax
je 0x402009
push 1
push edi
mov edx, esi
xor ecx, ecx
call fcn.00401b3b
pop ecx
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00401b0e
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x402fb7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4014
call fcn.004135a0
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea edi, [esi + 0x10]
cmp ebx, 0x1c
jb 0x40310c
cmp dword [esi], 0x80000001
jne 0x40310c
and dword [ebp - 0x4010], 0
cmp dword [esi + 4], 0
jbe 0x4030fb
mov ecx, dword [edi]
jmp 0x403009
cmp byte [esi + ecx], 0
je 0x403013
inc ecx
mov dword [ebp - 0x400c], ecx
cmp ebx, ecx
ja 0x403002
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
cmp ebx, eax
jb 0x40310c
cmp ebx, ecx
je 0x40310c
xor eax, eax
push 0x2000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x2004]
push eax
call fcn.00404300
mov eax, dword [edi]
mov ecx, 0x1000
and dword [ebp - 0x4008], 0
add eax, esi
push ecx
push eax
push ecx
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x4008]
push eax
call fcn.00407945
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x4004]
push 0x1000
push eax
call fcn.00404adb
add esp, 0x2c
xor eax, eax
push eax
push 0x8000080
push 2
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4014], eax
cmp eax, 0xffffffff
je 0x40310c
push 0
lea ecx, [ebp - 0x400c]
push ecx
push dword [edi + 8]
mov ecx, dword [edi + 4]
add ecx, esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403100
mov eax, dword [ebp - 0x400c]
cmp eax, dword [edi + 8]
jne 0x403100
push dword [ebp - 0x4014]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4010]
add edi, 0xc
inc eax
mov dword [ebp - 0x4010], eax
cmp eax, dword [esi + 4]
jb 0x402ffe
xor eax, eax
inc eax
jmp 0x403116
push dword [ebp - 0x4014]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004032a6
mov esp, ebp
pop ebp
ret

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 0x130018e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x13024f3d
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x130385b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
or ebx, 0xffffffff
mov esi, dword [ebp + 0x18]
xor edx, edx
test esi, esi
je 0x13001942
mov edi, dword [ebp + 0x1c]
nop dword [eax + eax]
cmp edi, 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
movzx ecx, byte [eax + edx*2]
inc edx
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x13038118]
cmp edx, esi
jb 0x13001920
not ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.130072a0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x13002490
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x130385b4]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x13029160]
xor eax, eax
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x70], 0
movaps xmm0, xmmword [0x13029170]
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x48], 0x67006c
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0x720075
mov dword [ebp - 0x40], 0x72006a
mov dword [ebp - 0x3c], 0x3a003a
mov dword [ebp - 0x38], 0xa0009
mov dword [ebp - 0x34], 0xc000b
mov dword [ebp - 0x30], 0xe000d
mov dword [ebp - 0x2c], 0x10000f
mov dword [ebp - 0x28], 0x120011
mov dword [ebp - 0x24], 0x140013
mov dword [ebp - 0x20], 0x160015
mov dword [ebp - 0x1c], 0x180017
mov dword [ebp - 0x18], 0x1a0019
mov dword [ebp - 0x14], 0x1c001b
mov dword [ebp - 0x10], 0x1e001d
mov dword [ebp - 0xc], 0x20001f
mov word [ebp - 8], ax
mov byte [ebp - 0x4c], al
movups xmmword [0x13039590], xmm0
movups xmmword [0x130395a0], xmm0
mov cl, byte [ebp + eax - 0x6c]
sub cl, al
dec cl
mov byte [eax + 0x13039590], cl
inc eax
cmp eax, 0x20
jb 0x13002547
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [0x13039540], xmm0
movups xmmword [0x13039550], xmm0
nop
mov ax, word [ebp + ecx*2 - 0x48]
sub ax, cx
dec ax
mov word [ecx*2 + 0x13039540], ax
inc ecx
cmp ecx, 0x20
jb 0x13002570
push 0x13039590
push 0x13039540
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x13039580], eax
test eax, eax
je 0x130025b9
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x13039580]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x70]
xor ecx, ebp
call fcn.1300cbb4
mov esp, ebp
pop ebp
ret

Function at 0x13003db0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1302547f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x130385b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.1300bd9a
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x13003e61
push eax
push esi
call fcn.1300c25f
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.1300bfa7
int3
Function at 0x1300a4d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x13026222
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x130385b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], 0
mov dword [ebp - 4], 1
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp - 0x7c]
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
push eax
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
call fcn.130099a0
lea ecx, [ebp - 0x7c]
call fcn.13009a60
push esi
lea ecx, [ebp - 0x7c]
call fcn.13009b50
mov dword [ebp - 0x80], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.13004980
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1300cbb4
mov esp, ebp
pop ebp
ret

Function at 0x1300abf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1300ac3e
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x40
push eax
push 0x40
push 1
push esi
mov dword [0x130395c4], 1
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1300ac34
mov al, byte [ebp + 0xc]
mov byte [esi], al
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x130395c4], 0
pop esi
pop ebp
ret

Function at 0x1300ac50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1300ac9e
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x40
push eax
push 0x40
push 4
push esi
mov dword [0x130395c4], 1
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1300ac94
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x130395c4], 0
pop esi
pop ebp
ret
Function at 0x1300ad50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x130385b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1300addc
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub eax, esi
push edi
mov edi, dword [ebp + 0x10]
sub eax, 5
mov dword [ebp - 0xb], eax
add edi, 5
lea eax, [ebp - 0x10]
mov byte [ebp - 0xc], 0xe9
push eax
push 0x40
push edi
push esi
mov dword [ebp - 0x10], 0
mov dword [0x130395c4], 1
call ebx
test eax, eax
je 0x1300add0
xor eax, eax
test edi, edi
je 0x1300adc5
nop word [eax + eax]
cmp eax, 5
jae 0x1300adbb
mov cl, byte [ebp + eax - 0xc]
jmp 0x1300adbd
mov cl, 0x90
mov byte [esi + eax], cl
inc eax
cmp eax, edi
jb 0x1300adb0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push esi
call ebx
pop edi
mov dword [0x130395c4], 0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1300cbb4
mov esp, ebp
pop ebp
ret
Function at 0x1300af80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x130385b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1300b132
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x1300b11f
push 0x40
push 0x1000
push 0x20
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x1300b11f
test esi, esi
je 0x1300b001
mov ecx, edi
sub ebx, edi
mov edx, esi
nop
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x1300aff0
mov ebx, dword [ebp - 0x14]
mov al, byte [ebx]
cmp al, 0xe8
je 0x1300b0a3
cmp al, 0xe9
je 0x1300b0a3
cmp al, 0x8d
je 0x1300b0ed
cmp al, 0x6a
jne 0x1300b05e
cmp esi, 7
jae 0x1300b0ed
mov byte [edi], al
mov esi, 7
movzx eax, byte [ebx + 1]
mov byte [edi + 1], al
movzx eax, byte [ebx + 2]
mov byte [edi + 2], al
movzx eax, byte [ebx + 3]
mov byte [edi + 3], al
movzx eax, byte [ebx + 4]
mov byte [edi + 4], al
movzx eax, byte [ebx + 5]
mov byte [edi + 5], al
movzx eax, byte [ebx + 6]
mov byte [edi + 6], al
jmp 0x1300b0ed
cmp al, 0xff
jne 0x1300b0ed
mov al, byte [ebx + 1]
cmp al, 0x15
je 0x1300b071
cmp al, 0x25
jne 0x1300b0ed
mov eax, 6
cmp esi, eax
cmovae eax, esi
mov esi, eax
test esi, esi
je 0x1300b0ed
mov dword [ebp - 0x10], ebx
mov ecx, edi
sub ebx, edi
mov edx, esi
nop word [eax + eax]
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x1300b090
mov ebx, dword [ebp - 0x14]
jmp 0x1300b0ed
xor edx, edx
test esi, esi
je 0x1300b0db
mov eax, edi
mov ecx, ebx
sub eax, ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
sub eax, ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov edi, eax
nop
mov al, byte [ecx]
mov byte [ebx + ecx], al
cmp edx, 5
jae 0x1300b0cf
mov al, byte [ecx]
mov byte [edi + ecx], al
inc edx
inc ecx
cmp edx, esi
jb 0x1300b0c0
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov eax, ebx
sub eax, edi
add dword [ebp - 0xb], eax
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
mov al, byte [ebp - 8]
mov byte [edi + 4], al
push 0
lea eax, [esi + ebx]
push eax
lea eax, [esi + edi]
push eax
call fcn.1300ad50
lea ecx, [esi - 5]
push ecx
push dword [ebp - 0x1c]
push ebx
call fcn.1300ad50
add esp, 0x18
mov eax, edi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1300cbb4
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1300cbb4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.1300cbb4
mov esp, ebp
pop ebp
ret