joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403450
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ecx, 0x32
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x4d4]
mov esi, 0x40e0c0
push ebx
mov ebx, eax
sub esp, 0x504
mov dword [ebp - 0x4dc], edx
mov edx, dword [sym.imp.user32.dll_LoadStringW]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x40c]
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
lea edi, [ebp - 0x20c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x4d8], edx
call edx
sub esp, 0x10
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], 2
mov dword [esp], ebx
mov edx, dword [ebp - 0x4d8]
call edx
sub esp, 0x10
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
sub esp, 0x30
test eax, eax
je 0x403688
mov esi, eax
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp], 0x50000000
call dword [sym.imp.comctl32.dll_CreateStatusWindowW]
lea ecx, [ebp - 0x4d4]
sub esp, 0x10
mov dword [0x419028], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ebx
mov dword [esp], esi
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x50000000
call sub.comctl32.dll_CreateToolbarEx
mov edi, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x34
mov dword [0x41902c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6f
mov dword [esp + 4], 0x401
mov dword [esp], eax
call edi
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x71
mov dword [esp + 4], 0x401
mov eax, dword [0x41902c]
mov dword [esp], eax
call edi
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x74
mov dword [esp + 4], 0x401
mov eax, dword [0x41902c]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x4dc]
mov dword [0x419020], esi
sub esp, 0x10
mov dword [0x41903c], ebx
mov dword [0x419040], 1
mov dword [0x419044], 5
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
mov dword [esp], esi
call dword [sym.imp.user32.dll_UpdateWindow]
mov eax, 1
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4053f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x460
mov eax, dword [0x419674]
mov dword [ebp - 0x448], 5
mov dword [ebp - 0x434], 0x100
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x44c], 0xffff0001
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x45c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.AppID_
mov dword [esp], 0x80000000
call esi
sub esp, 0xc
test eax, eax
jne 0x4055dc
lea edi, [ebp - 0x40c]
mov ebx, 0xffffffff
lea esi, [esi]
add ebx, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x4055a0
lea eax, [ebp - 0x458]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
jne 0x405460
mov dword [ebp - 0x454], 0x200
lea eax, [ebp - 0x454]
lea edx, [ebp - 0x20c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ecx, eax
sub esp, 0x10
mov eax, edi
test ecx, ecx
jne 0x405500
cmp word [ebp - 0x20c], 0
lea edx, [ebp - 0x20c]
mov eax, edx
cmove eax, edi
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov edx, eax
mov byte [eax], 2
xor eax, eax
lea esi, [esi]
movzx ecx, word [edi + eax]
mov word [edx + eax + 2], cx
add eax, 2
test cx, cx
jne 0x405538
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax + 0x202], cx
add eax, 2
test cx, cx
jne 0x405550
lea eax, [ebp - 0x450]
mov dword [ebp - 0x424], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x419030]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x405460
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x419674]
sub esp, 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp + 0xc], eax
mov eax, dword [0x419030]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4055f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x460
mov eax, dword [0x41967c]
mov dword [ebp - 0x448], 5
mov dword [ebp - 0x434], 0x100
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x44c], 0xffff0001
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x45c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Interface_
mov dword [esp], 0x80000000
call esi
sub esp, 0xc
test eax, eax
jne 0x4057dc
lea edi, [ebp - 0x40c]
mov ebx, 0xffffffff
lea esi, [esi]
add ebx, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x4057a0
lea eax, [ebp - 0x458]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
jne 0x405660
mov dword [ebp - 0x454], 0x200
lea eax, [ebp - 0x454]
lea edx, [ebp - 0x20c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ecx, eax
sub esp, 0x10
mov eax, edi
test ecx, ecx
jne 0x405700
cmp word [ebp - 0x20c], 0
lea edx, [ebp - 0x20c]
mov eax, edx
cmove eax, edi
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov edx, eax
mov byte [eax], 0xa
xor eax, eax
lea esi, [esi]
movzx ecx, word [edi + eax]
mov word [edx + eax + 2], cx
add eax, 2
test cx, cx
jne 0x405738
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax + 0x202], cx
add eax, 2
test cx, cx
jne 0x405750
lea eax, [ebp - 0x450]
mov dword [ebp - 0x424], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x419030]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x405660
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41967c]
sub esp, 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp + 0xc], eax
mov eax, dword [0x419030]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4057f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov edx, 0xffff0000
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x67c
mov eax, dword [0x419664]
mov dword [ebp - 0x648], 0x45
mov dword [ebp - 0x634], 0x100
mov dword [ebp - 0x64c], 0xffff0001
mov dword [ebp - 0x628], 1
test eax, eax
cmove eax, edx
mov dword [ebp - 0x650], eax
lea eax, [ebp - 0x664]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp + 4], str.Component_Categories_
mov dword [esp], 0x80000000
mov dword [ebp - 0x668], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x405a7c
lea ebx, [ebp - 0x60c]
mov esi, 0xffffffff
lea esi, [esi]
add esi, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x664]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x405a40
lea eax, [ebp - 0x660]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x664]
mov dword [esp], eax
mov eax, dword [ebp - 0x668]
call eax
sub esp, 0xc
test eax, eax
jne 0x405878
mov dword [ebp - 0x65c], 0x200
lea eax, [ebp - 0x65c]
mov dword [ebp - 0x658], 0x200
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x654], 0x200
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x660]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
jne 0x4059d0
cmp word [ebp - 0x20c], 0
je 0x4059d0
mov eax, dword [ebp - 0x660]
mov dword [ebp - 0x638], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ecx, eax
mov byte [eax], 1
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [ecx + eax + 2], dx
add eax, 2
test dx, dx
jne 0x405968
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ebx + eax]
mov word [ecx + eax + 0x202], dx
add eax, 2
test dx, dx
jne 0x405980
lea eax, [ebp - 0x650]
mov dword [ebp - 0x624], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x419030]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x405878
lea eax, [ebp - 0x658]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x654]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x40c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x660]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
jne 0x405878
cmp word [ebp - 0x20c], 0
jne 0x40592d
jmp 0x405878
mov eax, dword [ebp - 0x664]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x419664]
sub esp, 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp + 0xc], eax
mov eax, dword [0x419030]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407100
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
call fcn.00405a90
call fcn.004057f0
call fcn.00405ee0
call fcn.004053f0
call fcn.00404fa0
pop ebp
jmp fcn.004055f0

Function at 0x407130
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov edx, 0x419660
xor eax, eax
mov ecx, 8
mov ebp, esp
push edi
mov edi, edx
rep stosd dword es:[edi], eax
call fcn.004057f0
mov edi, dword [ebp - 4]
leave
jmp fcn.00405ee0
Function at 0x40d370
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x40d3e0
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0040d430
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]

Function at 0x40d430
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call fcn.0040d420
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40d48e
xor ecx, ecx
xor edx, edx
jmp 0x40d46e
cmp al, 0x5c
jne 0x40d4e0
add edx, 1
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x40d483
cmp al, 9
je 0x40d476
cmp al, 0x20
jne 0x40d458
test ecx, ecx
je 0x40d483
xor edx, edx
jmp 0x40d463
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40d480
cmp al, 0x20
je 0x40d480
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x20], 1
jne 0x40d4a9
mov word [ebp - 0x1c], 1
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004047f0
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
cmp al, 0x22
jne 0x40d47a
and edx, 1
jne 0x40d47a
xor ecx, 1
jmp 0x40d463
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x408931
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
call fcn.0040896e
mov ecx, 0x997aab97
add ebx, 0x9f44d9f8
xor dword [esi], edx
sub ecx, 0xf8ae9fa7
inc esi
sub ebx, 0xb1d35eb
cmp esi, edi
jne fcn.00408931
sub ebx, 0x5110b377
add ecx, ebx
ret
Function at 0x403580
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x100000
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
cmp esi, 2
jl 0x403635
mov edi, dword [ebp + 0xc]
cmp esi, 2
je 0x40360c
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
xor esi, esi
inc esi
lea ecx, [eax - 1]
add eax, 0xfffffffe
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
push 0x4658ee
push dword [edi + esi*4]
call ebx
add esp, 8
test eax, eax
je 0x4035ff
push str.__force_use_module
push dword [edi + esi*4]
call ebx
add esp, 8
cmp esi, dword [ebp - 0x10]
jge 0x403635
test eax, eax
jne 0x403635
mov edx, dword [edi + esi*4 + 4]
mov ecx, 0x49af80
inc esi
call fcn.004066a0
jmp 0x403606
mov byte [0x49af7c], 1
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x4035c7
mov eax, dword [ebp + 8]
mov ecx, 0x49af98
mov edx, dword [edi + eax*4 - 4]
call fcn.004066a0
movzx ecx, byte [0x49af7c]
call fcn.004010d0
test al, al
je 0x403635
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x406220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x46800c]
mov bl, 1
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x38], 0
je 0x4062c3
cmp byte [ecx + 0x3d], 0
mov esi, ecx
je 0x4062c3
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push 0xffffffffffffffff
call edi
cmp eax, 0xffffffff
je 0x4062c1
mov edi, dword [esi + 0x38]
lea eax, [esi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [section..00cfg]
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x30]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
push edx
push dword [ebp - 0x38]
call ebx
cmp eax, 3
je 0x4062d7
cmp eax, 1
je 0x40629a
test eax, eax
jne 0x4062c1
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
sub edi, eax
je 0x4062b8
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4062c1
cmp byte [esi + 0x3d], 0
sete bl
jmp 0x4062c3
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044d830
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov bl, 1
jmp 0x4062c3
Function at 0x44cb80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x46800c]
mov esi, edx
mov edi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, dword [ecx]
mov edx, dword [ebx + 4]
cmp byte [edx + 0xd], 0
je 0x44cc0b
mov dword [ebp - 0x14], ebx
mov eax, ebx
cmp ebx, dword [eax]
je 0x44cc44
mov dword [ebp - 0x18], esi
lea esi, [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov ecx, esi
call fcn.0044c580
mov esi, dword [esi]
mov al, 1
mov dword [ebp - 0x20], eax
lea ecx, [esi + 0x10]
mov edx, edi
call fcn.00447900
test al, al
je 0x44cc5c
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
movzx eax, byte [ebp - 0x20]
mov edx, esi
push dword [ebp + 0xc]
push ebx
push eax
call fcn.0044c9a0
add esp, 0xc
mov al, 1
mov byte [esi + 4], al
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044d830
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], esi
mov esi, edx
add edx, 0x10
mov ecx, edi
call fcn.00447900
mov ecx, eax
xor cl, 1
movzx ecx, cl
mov edx, dword [esi + ecx*8]
cmp byte [edx + 0xd], 0
je 0x44cc11
test al, al
mov dword [ebp - 0x14], esi
je 0x44cc4e
mov ecx, dword [ebp - 0x1c]
mov ebx, esi
mov esi, dword [ebp - 0x18]
mov eax, dword [ecx]
jmp 0x44cba8
mov edx, esi
push dword [ebp + 0xc]
push ebx
push 1
jmp 0x44cbea
mov dword [ebp - 0x20], 0
mov ebx, esi
jmp 0x44cbc7
mov ecx, dword [ebp + 0xc]
call fcn.0044cc70
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
mov esi, eax
xor eax, eax
jmp 0x44cbf4
Function at 0x100026b0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x100c3578
call fcn.10071035
push ebx
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push edi
nop dword [eax]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push eax
push 0x1f6
push 0
call dword [sym.imp.NETAPI32.dll_NetShareEnum]
mov ebx, eax
test ebx, ebx
je 0x1000271d
cmp ebx, 0xea
jne 0x10002757
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
cmp eax, 1
jb 0x1000275a
test esi, esi
je 0x1000276c
mov edi, 1
cmp eax, edi
jb 0x1000275a
cmp dword [esi + 4], 0
jge 0x1000274f
push str.admin_
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1000278e
mov eax, dword [ebp - 8]
inc edi
add esi, 0x28
cmp edi, eax
jbe 0x10002735
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1000276c
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - 0x14], 0
cmp ebx, 0xea
je 0x100026f0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000279c
push eax
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006efdc
mov esp, ebp
pop ebp
ret

Function at 0x100027c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x100c3578
call fcn.10071035
push 4
lea eax, [ebp - 8]
mov dword [esi], 0
push eax
push 4
push str.AutoShareWks
push str.SYSTEMCurrentControlSet_servicesLanmanServerParameters
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0
push str.admin_
push 0
call dword [sym.imp.NETAPI32.dll_NetShareDel]
test eax, eax
jne 0x10002831
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 2
mov dword [esi], 2
xor ecx, ebp
pop esi
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
Function at 0x10002850
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100bd024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x100c3578
call fcn.10071035
push str.AutoShareWks
push str.SYSTEMCurrentControlSet_servicesLanmanServerParameters
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], 0
mov dword [ebp - 8], 0
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea eax, [ebp - 8]
mov dword [ebp - 0x28], str.ADMIN_
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], connect
push eax
push 2
push 0
mov dword [ebp - 0x20], str.Remote_Admin
mov dword [ebp - 0x1c], 0x7f
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.NETAPI32.dll_NetShareAdd]
test eax, eax
jne 0x100028f4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 2
mov dword [esi], 3
xor ecx, ebp
pop esi
call fcn.1006efdc
mov esp, ebp
pop ebp
ret 4